mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +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)
|
if (s->object_hook == NULL)
|
||||||
goto bail;
|
goto bail;
|
||||||
s->pairs_hook = PyObject_GetAttrString(ctx, "object_pairs_hook");
|
s->pairs_hook = PyObject_GetAttrString(ctx, "object_pairs_hook");
|
||||||
if (s->object_hook == NULL)
|
if (s->pairs_hook == NULL)
|
||||||
goto bail;
|
goto bail;
|
||||||
s->parse_float = PyObject_GetAttrString(ctx, "parse_float");
|
s->parse_float = PyObject_GetAttrString(ctx, "parse_float");
|
||||||
if (s->parse_float == NULL)
|
if (s->parse_float == NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue