bpo-45855: Replaced deprecated PyImport_ImportModuleNoBlock with PyImport_ImportModule (GH-30046)

This commit is contained in:
Kumar Aditya 2021-12-12 14:15:20 +05:30 committed by GitHub
parent e6fe10d340
commit 41026c3155
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 17 additions and 16 deletions

View file

@ -215,7 +215,7 @@ PyCapsule_Import(const char *name, int no_block)
if (object == NULL) {
if (no_block) {
object = PyImport_ImportModuleNoBlock(trace);
object = PyImport_ImportModule(trace);
} else {
object = PyImport_ImportModule(trace);
if (!object) {