mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
#10804: fix copy-paste error when checking assigned fields for NULL.
This commit is contained in:
parent
8ebebd8f7e
commit
d823bdcb0e
1 changed files with 1 additions and 1 deletions
|
@ -1732,7 +1732,7 @@ scanner_init(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
if (s->object_hook == NULL)
|
||||
goto bail;
|
||||
s->pairs_hook = PyObject_GetAttrString(ctx, "object_pairs_hook");
|
||||
if (s->object_hook == NULL)
|
||||
if (s->pairs_hook == NULL)
|
||||
goto bail;
|
||||
s->parse_float = PyObject_GetAttrString(ctx, "parse_float");
|
||||
if (s->parse_float == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue