mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-01 14:17:39 +08:00
MAINT: Use Python 3 compatible uuid hex property.
Instead of `uuid`'s `get_hex()` use `hex` which is available in both Python 2.7 and Python 3. From: @chinux23, Chen Huang <chen_huang@apple.com>
This commit is contained in:
@@ -212,7 +212,7 @@ class Order(object):
|
||||
self.type = zp.DATASOURCE_TYPE.ORDER
|
||||
|
||||
def make_id(self):
|
||||
return uuid.uuid4().get_hex()
|
||||
return uuid.uuid4().hex
|
||||
|
||||
def to_dict(self):
|
||||
py = copy(self.__dict__)
|
||||
|
||||
Reference in New Issue
Block a user