diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-11-05 15:55:36 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-11-05 15:55:36 (GMT) |
commit | 3f4d59eb21e62be6ba8c2e5886e9fa8756e2601a (patch) | |
tree | 482867aa86726d56dfd850ebcd86f6250de9ff31 /Lib/uuid.py | |
parent | 5239caf8358f8b8a77b26fa01bd8af0b7105e422 (diff) | |
download | cpython-3f4d59eb21e62be6ba8c2e5886e9fa8756e2601a.zip cpython-3f4d59eb21e62be6ba8c2e5886e9fa8756e2601a.tar.gz cpython-3f4d59eb21e62be6ba8c2e5886e9fa8756e2601a.tar.bz2 |
Issue #22793, #22637: Add missing "import os" in uuid._ifconfig_getnode()
Diffstat (limited to 'Lib/uuid.py')
-rw-r--r-- | Lib/uuid.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/uuid.py b/Lib/uuid.py index 93442e3..018bb6f 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'): |