Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 32896:a75815e31545 legacy-trunk
for some reason, the lack of adherence to Python's C whitespace rules
must have annoyed me at some point.
| author | Michael W. Hudson <mwh@python.net> |
|---|---|
| date | Mon, 02 Aug 2004 13:21:09 +0000 |
| parents | b8c2aa2be19a |
| children | 5218bff56449 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Mon Aug 02 12:44:28 2004 +0000 +++ b/Python/bltinmodule.c Mon Aug 02 13:21:09 2004 +0000 @@ -1588,7 +1588,7 @@ if (PyFile_WriteString(" ", fout) != 0) return NULL; } - if (PyFile_Check (fin) && PyFile_Check (fout) + if (PyFile_Check(fin) && PyFile_Check(fout) && isatty(fileno(PyFile_AsFile(fin))) && isatty(fileno(PyFile_AsFile(fout)))) { PyObject *po; @@ -1607,7 +1607,7 @@ po = NULL; prompt = ""; } - s = PyOS_Readline(PyFile_AsFile (fin), PyFile_AsFile (fout), + s = PyOS_Readline(PyFile_AsFile(fin), PyFile_AsFile(fout), prompt); Py_XDECREF(po); if (s == NULL) {
