mirror of https://github.com/python/cpython
Minor simplification.
This commit is contained in:
parent
9353ea2b85
commit
0b15541ae2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue