commit | e882aac16db749313fcf0d073b36c73e1ab1f857 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Sun Oct 24 21:12:26 2010 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Sun Oct 24 21:12:26 2010 +0000 |
tree | a636bfabf4cc21ef48d34423b0c3e29fed05bbf9 | |
parent | 2ebe6972675d55cdbbbd2c95eeb9c483c4544371 [diff] [blame] |
str.encode() doesn't accept None as errors: use 'strict' instead
diff --git a/Lib/os.py b/Lib/os.py index 2e8ba92..5c80e67 100644 --- a/Lib/os.py +++ b/Lib/os.py
@@ -539,7 +539,7 @@ def _fscodec(): encoding = sys.getfilesystemencoding() if encoding == 'mbcs': - errors = None # strict + errors = 'strict' else: errors = 'surrogateescape'