diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2017-01-27 12:43:41 +0000 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2017-01-27 12:43:41 +0000 |
commit | bbbab3c96168cea9f872f90da0a385b50f62ca70 (patch) | |
tree | dd00609da6492fbc378e8eef70c8cf162ce1e8b0 /Parser/tokenizer.c | |
parent | 49851a445bdbd7783f031fbb3e6972b55b885316 (diff) | |
parent | a10bdbd9f7b296da8a546ad430763b2f07dd32b9 (diff) | |
download | cpython-bbbab3c96168cea9f872f90da0a385b50f62ca70.tar.gz |
Closes #29308: Merged fix from 3.6.
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r-- | Parser/tokenizer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 0fa3aebc0f..10639ed774 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -440,7 +440,7 @@ fp_readl(char *s, int size, struct tok_state *tok) } else { - bufobj = PyObject_CallObject(tok->decoding_readline, NULL); + bufobj = _PyObject_CallNoArg(tok->decoding_readline); if (bufobj == NULL) goto error; } @@ -533,7 +533,7 @@ fp_setreadl(struct tok_state *tok, const char* enc) Py_XSETREF(tok->decoding_readline, readline); if (pos > 0) { - PyObject *bufobj = PyObject_CallObject(readline, NULL); + PyObject *bufobj = _PyObject_CallNoArg(readline); if (bufobj == NULL) return 0; Py_DECREF(bufobj); @@ -650,7 +650,7 @@ decoding_feof(struct tok_state *tok) } else { PyObject* buf = tok->decoding_buffer; if (buf == NULL) { - buf = PyObject_CallObject(tok->decoding_readline, NULL); + buf = _PyObject_CallNoArg(tok->decoding_readline); if (buf == NULL) { error_ret(tok); return 1; |