diff options
| author | Michael W. Hudson <mwh@python.net> | 2004-08-02 13:21:09 +0000 |
|---|---|---|
| committer | Michael W. Hudson <mwh@python.net> | 2004-08-02 13:21:09 +0000 |
| commit | 28adb4c4c2e406acc1e5b7e0e5055fb70596ae02 (patch) | |
| tree | 8f8985111b5d37b85e4e42eb38f523bf90be30bf /Python | |
| parent | fb398e6c96a6b1e84590fb60919e8ad812cc5bdf (diff) | |
| download | cpython-28adb4c4c2e406acc1e5b7e0e5055fb70596ae02.tar.gz | |
for some reason, the lack of adherence to Python's C whitespace rules
must have annoyed me at some point.
Diffstat (limited to 'Python')
| -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 b76f3739fa..8ff733c4d8 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) { |
