summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-07-28 21:25:42 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-07-28 21:25:42 (GMT)
commitbed7117fdabcc24dd87a269b051f9b57b4c4909a (patch)
tree79f6610535b4e3359b422d0bf16336676298498f /Lib/os.py
parentd73c1a3009d4bf0212d0d59111c1191066e245e4 (diff)
downloadcpython-bed7117fdabcc24dd87a269b051f9b57b4c4909a.zip
cpython-bed7117fdabcc24dd87a269b051f9b57b4c4909a.tar.gz
cpython-bed7117fdabcc24dd87a269b051f9b57b4c4909a.tar.bz2
Issue #9283: Oops, add missing { and } to repr(os.environ)
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py2
1 files changed, 1 insertions, 1 deletions
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())))