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

index 22dd52050ae2574f026a0827d89b9a7c0c278a9c..f3a3b2bd0e40c642c3c64cd176ba05cf070caaea 100644 (file)
@@ -156,7 +156,7 @@ binary in CHAR(16) if desired::
                     return "%.32x" % uuid.UUID(value).int
                 else:
                     # hexstring
-                    return "%.32x" % value
+                    return "%.32x" % value.int
 
         def process_result_value(self, value, dialect):
             if value is None: