From bed7117fdabcc24dd87a269b051f9b57b4c4909a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 28 Jul 2010 21:25:42 +0000 Subject: Issue #9283: Oops, add missing { and } to repr(os.environ) --- Lib/os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/os.py b/Lib/os.py index 2f78d8d..55e7fc2 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()))) -- cgit v0.12