summaryrefslogtreecommitdiffstats
path: root/Lib/uuid.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-10-02 14:57:59 (GMT)
committerGitHub <noreply@github.com>2017-10-02 14:57:59 (GMT)
commit4337a0d9955f0855ba38ef30feec3858d304abf0 (patch)
treea45f7d035c6e28bb95e4a54fb1d433c83353963b /Lib/uuid.py
parent1023dbbcb7f05e76053486ae7ef7f73b4cdc5398 (diff)
downloadcpython-4337a0d9955f0855ba38ef30feec3858d304abf0.zip
cpython-4337a0d9955f0855ba38ef30feec3858d304abf0.tar.gz
cpython-4337a0d9955f0855ba38ef30feec3858d304abf0.tar.bz2
bpo-11063: Fix _uuid module on macOS (#3855)
On macOS, use uuid_generate_time() instead of uuid_generate_time_safe() of libuuid, since uuid_generate_time_safe() is not available.
Diffstat (limited to 'Lib/uuid.py')
-rw-r--r--Lib/uuid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/uuid.py b/Lib/uuid.py
index b2fbd38..3123ff8 100644
--- a/Lib/uuid.py
+++ b/Lib/uuid.py
@@ -509,7 +509,7 @@ def _load_system_functions():
pass
elif _uuid is not None:
_generate_time_safe = _uuid.generate_time_safe
- _has_uuid_generate_time_safe = True
+ _has_uuid_generate_time_safe = _uuid.has_uuid_generate_time_safe
return
try: