Commit 016af3f4 authored by Serhiy Storchaka's avatar Serhiy Storchaka

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.
parent d184f664
...@@ -429,6 +429,8 @@ try: ...@@ -429,6 +429,8 @@ try:
_uuid_generate_random = lib.uuid_generate_random _uuid_generate_random = lib.uuid_generate_random
if hasattr(lib, 'uuid_generate_time'): if hasattr(lib, 'uuid_generate_time'):
_uuid_generate_time = 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 # The uuid_generate_* functions are broken on MacOS X 10.5, as noted
# in issue #8621 the function generates the same sequence of values # in issue #8621 the function generates the same sequence of values
......
...@@ -1160,6 +1160,7 @@ Rafal Smotrzyk ...@@ -1160,6 +1160,7 @@ Rafal Smotrzyk
Eric Snow Eric Snow
Dirk Soede Dirk Soede
Paul Sokolovsky Paul Sokolovsky
Evgeny Sologubov
Cody Somerville Cody Somerville
Edoardo Spadolini Edoardo Spadolini
Clay Spence Clay Spence
......
...@@ -68,6 +68,10 @@ Core and Builtins ...@@ -68,6 +68,10 @@ Core and Builtins
Library 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 - Issue #18672: Fixed format specifiers for Py_ssize_t in debugging output in
the _sre module. the _sre module.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment