Commit 0dffc46c by Tom Christie

ReturnDict and ReturnList repr as standard dict/list. Closes #2421.

parent da1db34a
...@@ -16,6 +16,9 @@ class ReturnDict(OrderedDict): ...@@ -16,6 +16,9 @@ class ReturnDict(OrderedDict):
def copy(self): def copy(self):
return ReturnDict(self, serializer=self.serializer) return ReturnDict(self, serializer=self.serializer)
def __repr__(self):
return dict.__repr__(self)
class ReturnList(list): class ReturnList(list):
""" """
...@@ -27,6 +30,9 @@ class ReturnList(list): ...@@ -27,6 +30,9 @@ class ReturnList(list):
self.serializer = kwargs.pop('serializer') self.serializer = kwargs.pop('serializer')
super(ReturnList, self).__init__(*args, **kwargs) super(ReturnList, self).__init__(*args, **kwargs)
def __repr__(self):
return list.__repr__(self)
class BoundField(object): class BoundField(object):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment