diff options
-rw-r--r-- | Lib/io.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1390,7 +1390,7 @@ class StringIO(TextIOWrapper): # XXX This is really slow, but fully functional - def __init__(self, initial_value="", encoding="utf-8", newline=None): + def __init__(self, initial_value="", encoding="utf-8", newline="\n"): super(StringIO, self).__init__(BytesIO(), encoding=encoding, newline=newline) |