mirror of
https://github.com/python/cpython.git
synced 2025-11-28 22:18:54 +00:00
bpo-40077: Remove redundant cast in json module (GH-19438)
This commit is contained in:
parent
97e0de04b8
commit
dcb04d9c6d
1 changed files with 2 additions and 2 deletions
|
|
@ -1818,7 +1818,7 @@ _json_exec(PyObject *module)
|
||||||
}
|
}
|
||||||
Py_INCREF(state->PyScannerType);
|
Py_INCREF(state->PyScannerType);
|
||||||
if (PyModule_AddObject(module, "make_scanner", state->PyScannerType) < 0) {
|
if (PyModule_AddObject(module, "make_scanner", state->PyScannerType) < 0) {
|
||||||
Py_DECREF((PyObject*)state->PyScannerType);
|
Py_DECREF(state->PyScannerType);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1828,7 +1828,7 @@ _json_exec(PyObject *module)
|
||||||
}
|
}
|
||||||
Py_INCREF(state->PyEncoderType);
|
Py_INCREF(state->PyEncoderType);
|
||||||
if (PyModule_AddObject(module, "make_encoder", state->PyEncoderType) < 0) {
|
if (PyModule_AddObject(module, "make_encoder", state->PyEncoderType) < 0) {
|
||||||
Py_DECREF((PyObject*)state->PyEncoderType);
|
Py_DECREF(state->PyEncoderType);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue