mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
Put tests in more logical order.
This commit is contained in:
parent
c5c29c0ac0
commit
f1725296cc
1 changed files with 2 additions and 2 deletions
|
|
@ -169,10 +169,10 @@ class OrderedDict(dict, MutableMapping):
|
|||
|
||||
def __repr__(self):
|
||||
'od.__repr__() <==> repr(od)'
|
||||
if self.__in_repr:
|
||||
return '...'
|
||||
if not self:
|
||||
return '%s()' % (self.__class__.__name__,)
|
||||
if self.__in_repr:
|
||||
return '...'
|
||||
self.__in_repr = True
|
||||
try:
|
||||
result = '%s(%r)' % (self.__class__.__name__, list(self.items()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue