summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-11-05 15:55:36 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-11-05 15:55:36 (GMT)
commit3f4d59eb21e62be6ba8c2e5886e9fa8756e2601a (patch)
tree482867aa86726d56dfd850ebcd86f6250de9ff31
parent5239caf8358f8b8a77b26fa01bd8af0b7105e422 (diff)
downloadcpython-3f4d59eb21e62be6ba8c2e5886e9fa8756e2601a.zip
cpython-3f4d59eb21e62be6ba8c2e5886e9fa8756e2601a.tar.gz
cpython-3f4d59eb21e62be6ba8c2e5886e9fa8756e2601a.tar.bz2
Issue #22793, #22637: Add missing "import os" in uuid._ifconfig_getnode()
-rw-r--r--Lib/uuid.py1
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'):