[Python-checkins] r83215 - python/branches/py3k/Lib/os.py

victor.stinner python-checkins at python.org
Wed Jul 28 23:25:42 CEST 2010


Author: victor.stinner
Date: Wed Jul 28 23:25:42 2010
New Revision: 83215

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


Modified:
   python/branches/py3k/Lib/os.py

Modified: python/branches/py3k/Lib/os.py
==============================================================================
--- python/branches/py3k/Lib/os.py	(original)
+++ python/branches/py3k/Lib/os.py	Wed Jul 28 23:25:42 2010
@@ -446,7 +446,7 @@
         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())))
 


More information about the Python-checkins mailing list