summaryrefslogtreecommitdiffstats
path: root/Lib/uuid.py
diff options
context:
space:
mode:
authorxdegaye <xdegaye@gmail.com>2017-12-07 11:59:13 (GMT)
committerGitHub <noreply@github.com>2017-12-07 11:59:13 (GMT)
commit961dbe0548e26394b7716d41423c61b1e2e58ef7 (patch)
tree6bbf813d3d61280463c5f56ab8a5e63f07c8fc8e /Lib/uuid.py
parentfb77e0d855e841f42c3fa504efe79eefca9efafb (diff)
downloadcpython-961dbe0548e26394b7716d41423c61b1e2e58ef7.zip
cpython-961dbe0548e26394b7716d41423c61b1e2e58ef7.tar.gz
cpython-961dbe0548e26394b7716d41423c61b1e2e58ef7.tar.bz2
bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link list' (GH-4696)
Diffstat (limited to 'Lib/uuid.py')
-rw-r--r--Lib/uuid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/uuid.py b/Lib/uuid.py
index be06a6e..b7433cb 100644
--- a/Lib/uuid.py
+++ b/Lib/uuid.py
@@ -401,7 +401,7 @@ def _ifconfig_getnode():
def _ip_getnode():
"""Get the hardware address on Unix by running ip."""
# This works on Linux with iproute2.
- mac = _find_mac('ip', 'link list', [b'link/ether'], lambda i: i+1)
+ mac = _find_mac('ip', 'link', [b'link/ether'], lambda i: i+1)
if mac:
return mac
return None