[Python-checkins] r70132 - python/trunk/Lib/collections.py
raymond.hettinger
python-checkins at python.org
Tue Mar 3 22:13:51 CET 2009
Author: raymond.hettinger
Date: Tue Mar 3 22:13:51 2009
New Revision: 70132
Log:
Minor simplification.
Modified:
python/trunk/Lib/collections.py
Modified: python/trunk/Lib/collections.py
==============================================================================
--- python/trunk/Lib/collections.py (original)
+++ python/trunk/Lib/collections.py Tue Mar 3 22:13:51 2009
@@ -87,7 +87,7 @@
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)
More information about the Python-checkins
mailing list