diff options
author | Michael W. Hudson <mwh@python.net> | 2004-08-02 13:21:09 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2004-08-02 13:21:09 (GMT) |
commit | 52db519faa6b0d4f611c81b4a8b181dfb988c678 (patch) | |
tree | 813125896f5e7ec3794f4719bab7d246a4aa51e4 /Python/bltinmodule.c | |
parent | d91fcbe265d525aa401c5e4ed837ac8ec8385340 (diff) | |
download | cpython-52db519faa6b0d4f611c81b4a8b181dfb988c678.zip cpython-52db519faa6b0d4f611c81b4a8b181dfb988c678.tar.gz cpython-52db519faa6b0d4f611c81b4a8b181dfb988c678.tar.bz2 |
for some reason, the lack of adherence to Python's C whitespace rules
must have annoyed me at some point.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index b76f373..8ff733c 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1588,7 +1588,7 @@ builtin_raw_input(PyObject *self, PyObject *args) 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 @@ builtin_raw_input(PyObject *self, PyObject *args) 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) { |