diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-11-05 16:55:36 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-11-05 16:55:36 +0100 |
commit | 3f4d59eb21e62be6ba8c2e5886e9fa8756e2601a (patch) | |
tree | 482867aa86726d56dfd850ebcd86f6250de9ff31 /Lib/uuid.py | |
parent | (Merge 3.4) asyncio: Move loop attribute to _FlowControlMixin (diff) | |
download | cpython-3f4d59eb21e62be6ba8c2e5886e9fa8756e2601a.tar.gz cpython-3f4d59eb21e62be6ba8c2e5886e9fa8756e2601a.tar.bz2 cpython-3f4d59eb21e62be6ba8c2e5886e9fa8756e2601a.zip |
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 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'): |