BUG: Fix __unicode__ method for Order class in blotter.py

Order's __unicode__ was previously calling unicode(self.__repr__) instead of
actually calling the repr method.
This commit is contained in:
Scott Sanderson
2014-04-22 10:58:30 -04:00
parent eadf9d27e8
commit 353419e9ca
+6 -1
View File
@@ -19,6 +19,8 @@ from copy import copy
from logbook import Logger
from collections import defaultdict
from six import text_type
import zipline.errors
import zipline.protocol as zp
@@ -343,4 +345,7 @@ class Order(object):
return "Order(%s)" % self.to_dict().__repr__()
def __unicode__(self):
return unicode(self.__repr__)
"""
Unicode representation for this object.
"""
return text_type(repr(self))