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.
This commit is contained in:
Victor Stinner 2017-10-02 07:57:59 -07:00 committed by GitHub
parent 1023dbbcb7
commit 4337a0d995
2 changed files with 30 additions and 2 deletions

View file

@ -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: