From 6f50b810b78eaecff78bb7e2a3109d1cc672dbe0 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 9 Jun 2013 21:08:05 +0300 Subject: Issue #16102: Make uuid._netbios_getnode() work again on Python 3. --- Lib/uuid.py | 2 +- Misc/NEWS | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/uuid.py b/Lib/uuid.py index 0df0743..049b46c 100644 --- a/Lib/uuid.py +++ b/Lib/uuid.py @@ -406,7 +406,7 @@ def _netbios_getnode(): if win32wnet.Netbios(ncb) != 0: continue status._unpack() - bytes = map(ord, status.adapter_address) + bytes = status.adapter_address return ((bytes[0]<<40) + (bytes[1]<<32) + (bytes[2]<<24) + (bytes[3]<<16) + (bytes[4]<<8) + bytes[5]) diff --git a/Misc/NEWS b/Misc/NEWS index 3ad038f..58ae9ba 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -27,6 +27,8 @@ Core and Builtins Library ------- +- Issue #16102: Make uuid._netbios_getnode() work again on Python 3. + - Issue #18109: os.uname() now decodes fields from the locale encoding, and socket.gethostname() now decodes the hostname from the locale encoding, instead of using the UTF-8 encoding in strict mode. -- cgit v0.12