diff options
author | Barry Warsaw <barry@python.org> | 2017-11-28 17:26:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 17:26:04 -0500 |
commit | 23df2d1304ece169d7e0dfc843dfb8026b413d9f (patch) | |
tree | a7fdbffe4a5dc8e21f5b4a0734e5811451cc2aed /Lib/idlelib/pathbrowser.py | |
parent | 71bd588646b282c9eebc390b31184a5bdb54e712 (diff) | |
download | cpython-git-23df2d1304ece169d7e0dfc843dfb8026b413d9f.tar.gz |
bpo-32107 - Improve MAC address calculation and fix test_uuid.py (#4600)
``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.
Diffstat (limited to 'Lib/idlelib/pathbrowser.py')
0 files changed, 0 insertions, 0 deletions