Issue #22793, #22637: Add missing "import os" in uuid._ifconfig_getnode()

This commit is contained in:
Victor Stinner 2014-11-05 16:55:36 +01:00
parent 5239caf835
commit 3f4d59eb21
1 changed files with 1 additions and 0 deletions

View File

@ -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'):