Update UUID type for py3.5 compat
Change-Id: Ia9ddcf66c13def98b4b7df3b76f9f3dff53c42ca
This commit is contained in:
parent
2028d30466
commit
ffd9873c66
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user