From: xghrl Date: Wed, 27 Jan 2016 08:10:06 +0000 (+0000) Subject: fix %x string format to compatible with Python 3.5 X-Git-Tag: rel_1_0_12~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5bde23f68967d41f6a15eaf43ded109c054a846;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix %x string format to compatible with Python 3.5 (cherry picked from commit 324e532d6081d9b9ea90bf3945cecfc792264f8d) --- diff --git a/doc/build/core/custom_types.rst b/doc/build/core/custom_types.rst index 7fca1a537b..22dd52050a 100644 --- a/doc/build/core/custom_types.rst +++ b/doc/build/core/custom_types.rst @@ -153,7 +153,7 @@ binary in CHAR(16) if desired:: return str(value) else: if not isinstance(value, uuid.UUID): - return "%.32x" % uuid.UUID(value) + return "%.32x" % uuid.UUID(value).int else: # hexstring return "%.32x" % value