summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-09-13 04:46:40 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-09-13 04:46:40 (GMT)
commit016af3f4d484d0e4f756bf0a505d0df3cbc444ed (patch)
treefd5b3ca3673f8e47ce432a12ef54977f1debe7f1 /Lib
parentd184f664e38047edebfc879b10b8190f96a82ca7 (diff)
downloadcpython-016af3f4d484d0e4f756bf0a505d0df3cbc444ed.zip
cpython-016af3f4d484d0e4f756bf0a505d0df3cbc444ed.tar.gz
cpython-016af3f4d484d0e4f756bf0a505d0df3cbc444ed.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')
-rw-r--r--Lib/uuid.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/uuid.py b/Lib/uuid.py
index 049b46c..9226fd4 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