Update UUID type for py3.5 compat

Change-Id: Ia9ddcf66c13def98b4b7df3b76f9f3dff53c42ca
This commit is contained in:
Kiall Mac Innes 2016-07-12 17:00:09 +01:00 committed by Graham Hayes
parent 2028d30466
commit ffd9873c66

View File

@ -42,10 +42,10 @@ class UUID(TypeDecorator):
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
return "%.32x" % value.int
def process_result_value(self, value, dialect):
if value is None: