From: Victor Stinner Date: Wed, 28 Jul 2010 21:25:42 +0000 (+0000) Subject: Issue #9283: Oops, add missing { and } to repr(os.environ) X-Git-Tag: v3.2a1~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bed7117fdabcc24dd87a269b051f9b57b4c4909a;p=thirdparty%2FPython%2Fcpython.git Issue #9283: Oops, add missing { and } to repr(os.environ) --- diff --git a/Lib/os.py b/Lib/os.py index 2f78d8dfce4c..55e7fc27c5aa 100644 --- a/Lib/os.py +++ b/Lib/os.py @@ -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())))