Commit f1725296 authored by Raymond Hettinger's avatar Raymond Hettinger

Put tests in more logical order.

parent c5c29c0a
......@@ -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()))
......
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