summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/os.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index e9d44cc6..2f78d8d 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -446,7 +446,9 @@ class _Environ(MutableMapping):
return len(self.data)
def __repr__(self):
- return 'environ({!r})'.format(self.data)
+ return 'environ({})'.format(', '.join(
+ ('{!r}: {!r}'.format(self.decodekey(key), self.decodevalue(value))
+ for key, value in self.data.items())))
def copy(self):
return dict(self)