mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-39943: Remove unnecessary casts in import.c that remove constness (GH-19209)
This commit is contained in:
parent
0c5ad54997
commit
fc2d8d62af
1 changed files with 2 additions and 2 deletions
|
@ -1763,14 +1763,14 @@ import_find_and_load(PyThreadState *tstate, PyObject *abs_name)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PyDTrace_IMPORT_FIND_LOAD_START_ENABLED())
|
if (PyDTrace_IMPORT_FIND_LOAD_START_ENABLED())
|
||||||
PyDTrace_IMPORT_FIND_LOAD_START((char *)PyUnicode_AsUTF8(abs_name));
|
PyDTrace_IMPORT_FIND_LOAD_START(PyUnicode_AsUTF8(abs_name));
|
||||||
|
|
||||||
mod = _PyObject_CallMethodIdObjArgs(interp->importlib,
|
mod = _PyObject_CallMethodIdObjArgs(interp->importlib,
|
||||||
&PyId__find_and_load, abs_name,
|
&PyId__find_and_load, abs_name,
|
||||||
interp->import_func, NULL);
|
interp->import_func, NULL);
|
||||||
|
|
||||||
if (PyDTrace_IMPORT_FIND_LOAD_DONE_ENABLED())
|
if (PyDTrace_IMPORT_FIND_LOAD_DONE_ENABLED())
|
||||||
PyDTrace_IMPORT_FIND_LOAD_DONE((char *)PyUnicode_AsUTF8(abs_name),
|
PyDTrace_IMPORT_FIND_LOAD_DONE(PyUnicode_AsUTF8(abs_name),
|
||||||
mod != NULL);
|
mod != NULL);
|
||||||
|
|
||||||
if (import_time) {
|
if (import_time) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue