mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267)
This commit is contained in:
parent
38f44b4a4a
commit
762f93ff2e
37 changed files with 154 additions and 132 deletions
|
@ -61,7 +61,7 @@ PyFile_GetLine(PyObject *f, int n)
|
|||
}
|
||||
|
||||
if (n <= 0) {
|
||||
result = _PyObject_CallMethodIdObjArgs(f, &PyId_readline, NULL);
|
||||
result = _PyObject_CallMethodIdNoArgs(f, &PyId_readline);
|
||||
}
|
||||
else {
|
||||
result = _PyObject_CallMethodId(f, &PyId_readline, "i", n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue