From ae062546aa11e2825dde69c0e9fe022ef1c878e6 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Sun, 8 Mar 2009 17:07:51 -0700 Subject: [PATCH] Make StringIO consistent with open wrt newlines --- Modules/_stringio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git Modules/_stringio.c Modules/_stringio.c index a88fcb7..c8551f2 100644 --- Modules/_stringio.c +++ Modules/_stringio.c @@ -546,7 +546,7 @@ stringio_init(StringIOObject *self, PyObject *args, PyObject *kwds) { char *kwlist[] = {"initial_value", "newline", NULL}; PyObject *value = NULL; - char *newline = "\n"; + char *newline = NULL; if (!PyArg_ParseTupleAndKeywords(args, kwds, "|Oz:__init__", kwlist, &value, &newline)) -- 1.6.1.3