Skip to content

Commit

Permalink
bpo-39943: Remove unnecessary casts in import.c that remove constness (
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance authored Mar 30, 2020
1 parent 0c5ad54 commit fc2d8d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -1763,14 +1763,14 @@ import_find_and_load(PyThreadState *tstate, PyObject *abs_name)
}

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,
&PyId__find_and_load, abs_name,
interp->import_func, NULL);

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);

if (import_time) {
Expand Down

0 comments on commit fc2d8d6

Please sign in to comment.