Commit bed7117f authored by Victor Stinner's avatar Victor Stinner

Issue #9283: Oops, add missing { and } to repr(os.environ)

parent d73c1a30
......@@ -446,7 +446,7 @@ class _Environ(MutableMapping):
return len(self.data)
def __repr__(self):
return 'environ({})'.format(', '.join(
return 'environ({{{}}})'.format(', '.join(
('{!r}: {!r}'.format(self.decodekey(key), self.decodevalue(value))
for key, value in self.data.items())))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment