8000 gh-111789: Simplify import.c by using PyDict_GetItemRef() by serhiy-storchaka · Pull Request #111979 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-111789: Simplify import.c by using PyDict_GetItemRef() #111979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Python/import.c
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
serhiy-storchaka and vstinner authored Nov 13, 2023
commit e4b181a075beba31318db4a70d4660d4c1df9f28
2 changes: 1 addition & 1 deletion Python/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -2373,7 +2373,7 @@ get_path_importer(PyThreadState *tstate, PyObject *path_importer_cache,
return NULL; /* Shouldn't happen */

if (PyDict_GetItemRef(path_importer_cache, p, &importer) != 0) {
// error or found
// found or error
return importer;
}
// not found
Expand Down
0