From 4c42e5a6d7d0047dbc6827e718fa6e1c7e5a9d29 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Tue, 2 Jul 2013 16:07:07 -0400 Subject: [PATCH] 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 --- zipline/finance/blotter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/finance/blotter.py b/zipline/finance/blotter.py index 6c9a37ad..29ac0094 100644 --- a/zipline/finance/blotter.py +++ b/zipline/finance/blotter.py @@ -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__)