summaryrefslogtreecommitdiffstats
path: root/Lib/collections
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-02-08 02:01:10 (GMT)
committerGitHub <noreply@github.com>2023-02-08 02:01:10 (GMT)
commit790ff6bc6a56b4bd6e403aa43a984b99f7171dd7 (patch)
treef07a6246d1ac10353febb2fe878079d24fd6fab4 /Lib/collections
parentb2b85b5db9cfdb24f966b61757536a898abc3830 (diff)
downloadcpython-790ff6bc6a56b4bd6e403aa43a984b99f7171dd7.zip
cpython-790ff6bc6a56b4bd6e403aa43a984b99f7171dd7.tar.gz
cpython-790ff6bc6a56b4bd6e403aa43a984b99f7171dd7.tar.bz2
gh-101446: Change `repr` of `collections.OrderedDict` (#101661)
Diffstat (limited to 'Lib/collections')
-rw-r--r--Lib/collections/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index b5e4d16..a5393aa 100644
--- a/Lib/collections/__init__.py
+++ b/Lib/collections/__init__.py
@@ -267,7 +267,7 @@ class OrderedDict(dict):
'od.__repr__() <==> repr(od)'
if not self:
return '%s()' % (self.__class__.__name__,)
- return '%s(%r)' % (self.__class__.__name__, list(self.items()))
+ return '%s(%r)' % (self.__class__.__name__, dict(self.items()))
def __reduce__(self):
'Return state information for pickling'