aboutsummaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-12-07 04:48:14 -0800
committerxdegaye <xdegaye@gmail.com>2017-12-07 13:48:14 +0100
commit03031fbc7d44106d652756462db34eae67de9568 (patch)
tree7cf3412f215167134ffd038543ef3afd31ef0c94 /Lib
parentAllows non-critical upload steps to fail (GH-4742) (#4743) (diff)
downloadcpython-03031fbc7d44106d652756462db34eae67de9568.tar.gz
cpython-03031fbc7d44106d652756462db34eae67de9568.tar.bz2
cpython-03031fbc7d44106d652756462db34eae67de9568.zip
bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link list' (GH-4696) (#4747)
(cherry picked from commit 961dbe0548e26394b7716d41423c61b1e2e58ef7)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/uuid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/uuid.py b/Lib/uuid.py
index 20b02da1ae4..36c956e2b0f 100644
--- a/Lib/uuid.py
+++ b/Lib/uuid.py
@@ -358,7 +358,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