Staging
v0.8.1
https://github.com/python/cpython
Revision 23df2d1304ece169d7e0dfc843dfb8026b413d9f authored by Barry Warsaw on 28 November 2017, 22:26:04 UTC, committed by GitHub on 28 November 2017, 22:26:04 UTC
``uuid.getnode()`` now preferentially returns universally administered MAC addresses if available, over locally administered MAC addresses.  This makes a better guarantee for global uniqueness of UUIDs returned from ``uuid.uuid1()``.  If only locally administered MAC addresses are available, the first such one found is returned.

Also improve internal code style by being explicit about ``return None`` rather than falling off the end of the function.

Improve the test robustness.
1 parent 71bd588
Raw File
Tip revision: 23df2d1304ece169d7e0dfc843dfb8026b413d9f authored by Barry Warsaw on 28 November 2017, 22:26:04 UTC
bpo-32107 - Improve MAC address calculation and fix test_uuid.py (#4600)
Tip revision: 23df2d1
.gitattributes
# Binary data types
*.aif binary
*.aifc binary
*.aiff binary
*.au binary
*.bmp binary
*.exe binary
*.icns binary
*.gif binary
*.ico binary
*.jpg binary
*.pck binary
*.png binary
*.psd binary
*.tar binary
*.wav binary
*.whl binary
*.zip binary

# Specific binary files
Lib/test/sndhdrdata/sndhdr.* binary

# Text files that should not be subject to eol conversion
Lib/test/cjkencodings/* -text
Lib/test/decimaltestdata/*.decTest -text
Lib/test/test_email/data/*.txt -text
Lib/test/xmltestdata/* -text
Lib/test/coding20731.py -text

# CRLF files
*.bat text eol=crlf
*.ps1 text eol=crlf
*.sln text eol=crlf
*.vcxproj* text eol=crlf
*.props text eol=crlf
*.proj text eol=crlf
PCbuild/readme.txt text eol=crlf
PC/readme.txt text eol=crlf
back to top