Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f377a5

Browse files
Merged revisions 82276 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r82276 | ronald.oussoren | 2010-06-27 14:43:47 +0200 (Sun, 27 Jun 2010) | 5 lines The uuid library on OSX 10.5 seems to contain the same bug as the one on OSX 10.6, therefore don't use it there either. This fixes issue8621. ........
1 parent dc969e5 commit 0f377a5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/uuid.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,17 +427,17 @@ def _netbios_getnode():
427427
if hasattr(lib, 'uuid_generate_time'):
428428
_uuid_generate_time = lib.uuid_generate_time
429429

430-
# The uuid_generate_* functions are broken on MacOS X 10.6, as noted
430+
# The uuid_generate_* functions are broken on MacOS X 10.5, as noted
431431
# in issue #8621 the function generates the same sequence of values
432432
# in the parent process and all children created using fork (unless
433433
# those children use exec as well).
434434
#
435-
# Assume that the uuid_generate functions are broken from 10.6 onward,
435+
# Assume that the uuid_generate functions are broken from 10.5 onward,
436436
# the test can be adjusted when a later version is fixed.
437437
import sys
438438
if sys.platform == 'darwin':
439439
import os
440-
if int(os.uname()[2].split('.')[0]) >= 10:
440+
if int(os.uname()[2].split('.')[0]) >= 9:
441441
_uuid_generate_random = _uuid_generate_time = None
442442

443443
# On Windows prior to 2000, UuidCreate gives a UUID containing the

0 commit comments

Comments
 (0)