mirror of
https://github.com/python/cpython.git
synced 2025-12-08 02:08:20 +00:00
Issue #9283: Oops, add missing { and } to repr(os.environ)
This commit is contained in:
parent
d73c1a3009
commit
bed7117fda
1 changed files with 1 additions and 1 deletions
|
|
@ -446,7 +446,7 @@ class _Environ(MutableMapping):
|
||||||
return len(self.data)
|
return len(self.data)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return 'environ({})'.format(', '.join(
|
return 'environ({{{}}})'.format(', '.join(
|
||||||
('{!r}: {!r}'.format(self.decodekey(key), self.decodevalue(value))
|
('{!r}: {!r}'.format(self.decodekey(key), self.decodevalue(value))
|
||||||
for key, value in self.data.items())))
|
for key, value in self.data.items())))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue