diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-24 21:12:26 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-24 21:12:26 (GMT) |
commit | e882aac16db749313fcf0d073b36c73e1ab1f857 (patch) | |
tree | a636bfabf4cc21ef48d34423b0c3e29fed05bbf9 | |
parent | 2ebe6972675d55cdbbbd2c95eeb9c483c4544371 (diff) | |
download | cpython-e882aac16db749313fcf0d073b36c73e1ab1f857.zip cpython-e882aac16db749313fcf0d073b36c73e1ab1f857.tar.gz cpython-e882aac16db749313fcf0d073b36c73e1ab1f857.tar.bz2 |
str.encode() doesn't accept None as errors: use 'strict' instead
-rw-r--r-- | Lib/os.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -539,7 +539,7 @@ if supports_bytes_environ: def _fscodec(): encoding = sys.getfilesystemencoding() if encoding == 'mbcs': - errors = None # strict + errors = 'strict' else: errors = 'surrogateescape' |