diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-29 09:33:26 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-29 09:33:26 (GMT) |
commit | c92ea76f3f43e367e9bf5fd12713c3b99ffad84a (patch) | |
tree | 6c37cfe6ff390163e3c588658d9090e10d7d4b93 /Lib/_pyio.py | |
parent | 1e40295af6be0e43e62a22300cbdfb62e28f237d (diff) | |
download | cpython-c92ea76f3f43e367e9bf5fd12713c3b99ffad84a.zip cpython-c92ea76f3f43e367e9bf5fd12713c3b99ffad84a.tar.gz cpython-c92ea76f3f43e367e9bf5fd12713c3b99ffad84a.tar.bz2 |
Issue #20424: Python implementation of io.StringIO now supports lone surrogates.
Diffstat (limited to 'Lib/_pyio.py')
-rw-r--r-- | Lib/_pyio.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_pyio.py b/Lib/_pyio.py index aab60db..a9b0064 100644 --- a/Lib/_pyio.py +++ b/Lib/_pyio.py @@ -2044,7 +2044,7 @@ class StringIO(TextIOWrapper): def __init__(self, initial_value="", newline="\n"): super(StringIO, self).__init__(BytesIO(), encoding="utf-8", - errors="strict", + errors="surrogatepass", newline=newline) # Issue #5645: make universal newlines semantics the same as in the # C version, even under Windows. |