[Python-checkins] bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link list' (GH-4696) (#4747)
xdegaye
webhook-mailer at python.org
Thu Dec 7 07:48:21 EST 2017
https://github.com/python/cpython/commit/03031fbc7d44106d652756462db34eae67de9568
commit: 03031fbc7d44106d652756462db34eae67de9568
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: xdegaye <xdegaye at gmail.com>
date: 2017-12-07T13:48:14+01:00
summary:
bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link list' (GH-4696) (#4747)
(cherry picked from commit 961dbe0548e26394b7716d41423c61b1e2e58ef7)
files:
A Misc/NEWS.d/next/Library/2017-12-04-12-23-26.bpo-32199.nGof4v.rst
M Lib/uuid.py
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
diff --git a/Misc/NEWS.d/next/Library/2017-12-04-12-23-26.bpo-32199.nGof4v.rst b/Misc/NEWS.d/next/Library/2017-12-04-12-23-26.bpo-32199.nGof4v.rst
new file mode 100644
index 00000000000..d5f88cef5c7
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2017-12-04-12-23-26.bpo-32199.nGof4v.rst
@@ -0,0 +1 @@
+The getnode() ip getter now uses 'ip link' instead of 'ip link list'.
More information about the Python-checkins
mailing list