Commit 0b15541a authored by Raymond Hettinger's avatar Raymond Hettinger

Minor simplification.

parent 9353ea2b
......@@ -87,7 +87,7 @@ class OrderedDict(dict, MutableMapping):
def __repr__(self):
if not self:
return '%s()' % (self.__class__.__name__,)
return '%s(%r)' % (self.__class__.__name__, list(self.items()))
return '%s(%r)' % (self.__class__.__name__, self.items())
def copy(self):
return self.__class__(self)
......
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