Merge "Update UUID type for py3.5 compat"
This commit is contained in:
commit
0782116b0c
|
@ -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