diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-09-13 04:49:36 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-09-13 04:49:36 (GMT) |
commit | 5abf3d9926be2c84d80e4c2bc775f175521a8a38 (patch) | |
tree | 2d8796b29c65f7107f1ba66fec5503856ea40955 /Lib/uuid.py | |
parent | f5ce0122ce210210456bae496f792d018c17b2be (diff) | |
parent | 016af3f4d484d0e4f756bf0a505d0df3cbc444ed (diff) | |
download | cpython-5abf3d9926be2c84d80e4c2bc775f175521a8a38.zip cpython-5abf3d9926be2c84d80e4c2bc775f175521a8a38.tar.gz cpython-5abf3d9926be2c84d80e4c2bc775f175521a8a38.tar.bz2 |
Issue #18784: The uuid module no more attempts to load libc via ctypes.CDLL,
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
Diffstat (limited to 'Lib/uuid.py')
-rw-r--r-- | Lib/uuid.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/uuid.py b/Lib/uuid.py index 484a231..93254ec 100644 --- a/Lib/uuid.py +++ b/Lib/uuid.py @@ -429,6 +429,8 @@ try: _uuid_generate_random = lib.uuid_generate_random if hasattr(lib, 'uuid_generate_time'): _uuid_generate_time = lib.uuid_generate_time + if _uuid_generate_random is not None: + break # found everything we were looking for # The uuid_generate_* functions are broken on MacOS X 10.5, as noted # in issue #8621 the function generates the same sequence of values |