From 3f4d59eb21e62be6ba8c2e5886e9fa8756e2601a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 5 Nov 2014 16:55:36 +0100 Subject: Issue #22793, #22637: Add missing "import os" in uuid._ifconfig_getnode() --- Lib/uuid.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/uuid.py') diff --git a/Lib/uuid.py b/Lib/uuid.py index 93442e336db..018bb6f51ba 100644 --- a/Lib/uuid.py +++ b/Lib/uuid.py @@ -346,6 +346,7 @@ def _find_mac(command, arg, hw_identifiers, get_index): def _ifconfig_getnode(): """Get the hardware address on Unix by running ifconfig.""" + import os # This works on Linux ('' or '-a'), Tru64 ('-av'), but not all Unixes. for args in ('', '-a', '-av'): -- cgit v1.2.3-65-gdbad