[Python-checkins] cpython: Issue #22793, #22637: Add missing "import os" in uuid._ifconfig_getnode()
victor.stinner
python-checkins at python.org
Wed Nov 5 17:00:42 CET 2014
https://hg.python.org/cpython/rev/16d6c2443131
changeset: 93390:16d6c2443131
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Nov 05 16:55:36 2014 +0100
summary:
Issue #22793, #22637: Add missing "import os" in uuid._ifconfig_getnode()
files:
Lib/uuid.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/uuid.py b/Lib/uuid.py
--- a/Lib/uuid.py
+++ b/Lib/uuid.py
@@ -346,6 +346,7 @@
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'):
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list