mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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)
|
||||
|
||||
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())))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue