summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-03-03 21:13:51 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-03-03 21:13:51 (GMT)
commit0b15541ae27fc926921ba1feb853c442a8ddaa82 (patch)
tree32adb50bf40dbb4f24f893c272c324e275ecfbdb
parent9353ea2b8587ea3acbcdbe322007cb1b96b73bce (diff)
downloadcpython-0b15541ae27fc926921ba1feb853c442a8ddaa82.zip
cpython-0b15541ae27fc926921ba1feb853c442a8ddaa82.tar.gz
cpython-0b15541ae27fc926921ba1feb853c442a8ddaa82.tar.bz2
Minor simplification.
-rw-r--r--Lib/collections.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/collections.py b/Lib/collections.py
index 723522d22..3319378 100644
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -87,7 +87,7 @@ class OrderedDict(dict, MutableMapping):
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)