mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
for some reason, the lack of adherence to Python's C whitespace rules
must have annoyed me at some point.
This commit is contained in:
parent
d91fcbe265
commit
52db519faa
1 changed files with 2 additions and 2 deletions
|
|
@ -1588,7 +1588,7 @@ builtin_raw_input(PyObject *self, PyObject *args)
|
||||||
if (PyFile_WriteString(" ", fout) != 0)
|
if (PyFile_WriteString(" ", fout) != 0)
|
||||||
return NULL;
|
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(fin)))
|
||||||
&& isatty(fileno(PyFile_AsFile(fout)))) {
|
&& isatty(fileno(PyFile_AsFile(fout)))) {
|
||||||
PyObject *po;
|
PyObject *po;
|
||||||
|
|
@ -1607,7 +1607,7 @@ builtin_raw_input(PyObject *self, PyObject *args)
|
||||||
po = NULL;
|
po = NULL;
|
||||||
prompt = "";
|
prompt = "";
|
||||||
}
|
}
|
||||||
s = PyOS_Readline(PyFile_AsFile (fin), PyFile_AsFile (fout),
|
s = PyOS_Readline(PyFile_AsFile(fin), PyFile_AsFile(fout),
|
||||||
prompt);
|
prompt);
|
||||||
Py_XDECREF(po);
|
Py_XDECREF(po);
|
||||||
if (s == NULL) {
|
if (s == NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue