Minor simplification.

This commit is contained in:
Raymond Hettinger 2009-03-03 21:13:51 +00:00
parent 9353ea2b85
commit 0b15541ae2
1 changed files with 1 additions and 1 deletions

View File

@ -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)