diff options
author | Andy Lester <andy@petdance.com> | 2020-03-30 20:19:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 20:19:14 (GMT) |
commit | fc2d8d62af25be90f5fd490df141a775d9619b23 (patch) | |
tree | 92312b9509d2297affa0b6bedecff0451048555e /Python | |
parent | 0c5ad5499798aed4cd305d324051986ed4c48c8c (diff) | |
download | cpython-fc2d8d62af25be90f5fd490df141a775d9619b23.zip cpython-fc2d8d62af25be90f5fd490df141a775d9619b23.tar.gz cpython-fc2d8d62af25be90f5fd490df141a775d9619b23.tar.bz2 |
bpo-39943: Remove unnecessary casts in import.c that remove constness (GH-19209)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index 5d500df..2e43456 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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) { |