diff --git a/Lib/collections.py b/Lib/collections.py index e849296cdd8..9120ab69d56 100644 --- a/Lib/collections.py +++ b/Lib/collections.py @@ -169,10 +169,10 @@ def move_to_end(self, key, last=True): 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()))