Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 40799:04f5cbc74424
Kill off softspace completely (except in formatter.py which seems to have
a different feature with the same name).
The change to test_doctest.txt reduces the doctest failures to 3.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 09 Feb 2007 23:20:19 +0000 |
| parents | e9a6234b26af |
| children | f29f1a8b7869 |
line wrap: on
line diff
--- a/Python/sysmodule.c Fri Feb 09 22:43:47 2007 +0000 +++ b/Python/sysmodule.c Fri Feb 09 23:20:19 2007 +0000 @@ -104,8 +104,6 @@ } if (PyObject_SetAttrString(builtins, "_", Py_None) != 0) return NULL; - if (Py_FlushLine() != 0) - return NULL; outf = PySys_GetObject("stdout"); if (outf == NULL) { PyErr_SetString(PyExc_RuntimeError, "lost sys.stdout"); @@ -113,8 +111,7 @@ } if (PyFile_WriteObject(o, outf, 0) != 0) return NULL; - PyFile_SoftSpace(outf, 1); - if (Py_FlushLine() != 0) + if (PyFile_WriteString("\n", outf) != 0) return NULL; if (PyObject_SetAttrString(builtins, "_", o) != 0) return NULL;
