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

This commit is contained in:
Victor Stinner 2010-07-28 21:25:42 +00:00
parent d73c1a3009
commit bed7117fda
1 changed files with 1 additions and 1 deletions

View File

@ -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())))