[Python-modules-team] Bug#806334: Bug#806334: kombu: FTBFS: ImportError: cannot import name '_uuid_generate_random'
Brian May
bam at debian.org
Sat Nov 28 10:22:41 UTC 2015
Brian May <bam at debian.org> writes:
> Don't think we can complain at Python though, looks like a private
> symbol.
Looks like this is a work around for a bug that was in Python 2.5.
http://bugs.python.org/issue4607:
>From kombu code:
def uuid4():
# Workaround for http://bugs.python.org/issue4607
if ctypes and _uuid_generate_random: # pragma: no cover
buffer = ctypes.create_string_buffer(16)
_uuid_generate_random(buffer)
return UUID(bytes=buffer.raw)
return _uuid4()
--
Brian May <bam at debian.org>
More information about the Python-modules-team
mailing list