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

victor.stinner python-checkins at python.org
Sun Oct 24 23:12:26 CEST 2010


Author: victor.stinner
Date: Sun Oct 24 23:12:26 2010
New Revision: 85830

Log:
str.encode() doesn't accept None as errors: use 'strict' instead


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	Sun Oct 24 23:12:26 2010
@@ -539,7 +539,7 @@
 def _fscodec():
     encoding = sys.getfilesystemencoding()
     if encoding == 'mbcs':
-        errors = None   # strict
+        errors = 'strict'
     else:
         errors = 'surrogateescape'
 


More information about the Python-checkins mailing list