summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/io.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/io.py b/Lib/io.py
index 375ae6e..7100278 100644
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -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)