Kaydet (Commit) 3f4d59eb authored tarafından Victor Stinner's avatar Victor Stinner

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

üst 5239caf8
......@@ -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'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment