[Python-checkins] cpython (3.3): Issue #16102: Make uuid._netbios_getnode() work again on Python 3.

serhiy.storchaka python-checkins at python.org
Sun Jun 9 20:10:48 CEST 2013


http://hg.python.org/cpython/rev/27f55ff12f41
changeset: 84072:27f55ff12f41
branch: 3.3
parent: 84066:8f95d77443da
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sun Jun 09 21:08:05 2013 +0300
summary:
 Issue #16102: Make uuid._netbios_getnode() work again on Python 3.
files:
 Lib/uuid.py | 2 +-
 Misc/NEWS | 2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/uuid.py b/Lib/uuid.py
--- a/Lib/uuid.py
+++ b/Lib/uuid.py
@@ -406,7 +406,7 @@
 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
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -27,6 +27,8 @@
 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.
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /