summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-09-12 18:16:01 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-09-12 18:16:01 (GMT)
commitf1725296cc81f20b5aad19009da0efda48a87fc9 (patch)
treedee4f76f735eb45fdec9b94a3d81beaee1459e40
parentc5c29c0ac00f2480eab43ffcecd26ac7ed0c7dfd (diff)
downloadcpython-f1725296cc81f20b5aad19009da0efda48a87fc9.zip
cpython-f1725296cc81f20b5aad19009da0efda48a87fc9.tar.gz
cpython-f1725296cc81f20b5aad19009da0efda48a87fc9.tar.bz2
Put tests in more logical order.
-rw-r--r--Lib/collections.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/collections.py b/Lib/collections.py
index e849296..9120ab6 100644
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -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()))