Issue #16102: Make uuid._netbios_getnode() work again on Python 3.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 9 Jun 2013 18:08:05 +0000 (21:08 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 9 Jun 2013 18:08:05 +0000 (21:08 +0300)
Lib/uuid.py
Misc/NEWS

index 0df0743c4c50ef28045944c759d92694a00f6ed3..049b46c09d9ff7527ec0dac32c33a90274a9fed0 100644 (file)
@@ -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])
 
index 3ad038f5de4b6e90aa7d22737a06079627f96502..58ae9ba469dbe217df4a9e0849eabe5e8b3dc478 100644 (file)
--- 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.