]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix %x string format to compatible with Python 3.5
authorxghrl <cxghrl@gmail.com>
Wed, 27 Jan 2016 08:10:06 +0000 (08:10 +0000)
committerxghrl <cxghrl@gmail.com>
Wed, 27 Jan 2016 08:10:06 +0000 (08:10 +0000)
doc/build/core/custom_types.rst

index 7fca1a537be3ed7b2659814bc5715bb1ebc60cb3..22dd52050ae2574f026a0827d89b9a7c0c278a9c 100644 (file)
@@ -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