(original) (raw)

changeset: 85667:7aaba721ebc0 branch: 3.3 parent: 85665:246095bb2309 user: Serhiy Storchaka storchaka@gmail.com date: Fri Sep 13 07:46:40 2013 +0300 files: Lib/uuid.py Misc/ACKS Misc/NEWS description: 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. diff -r 246095bb2309 -r 7aaba721ebc0 Lib/uuid.py --- a/Lib/uuid.py Wed Sep 11 22:56:30 2013 -0700 +++ b/Lib/uuid.py Fri Sep 13 07:46:40 2013 +0300 @@ -429,6 +429,8 @@ _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 diff -r 246095bb2309 -r 7aaba721ebc0 Misc/ACKS --- a/Misc/ACKS Wed Sep 11 22:56:30 2013 -0700 +++ b/Misc/ACKS Fri Sep 13 07:46:40 2013 +0300 @@ -1160,6 +1160,7 @@ Eric Snow Dirk Soede Paul Sokolovsky +Evgeny Sologubov Cody Somerville Edoardo Spadolini Clay Spence diff -r 246095bb2309 -r 7aaba721ebc0 Misc/NEWS --- a/Misc/NEWS Wed Sep 11 22:56:30 2013 -0700 +++ b/Misc/NEWS Fri Sep 13 07:46:40 2013 +0300 @@ -68,6 +68,10 @@ Library ------- +- 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. + - Issue #18672: Fixed format specifiers for Py_ssize_t in debugging output in the _sre module. /storchaka@gmail.com