mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-45855: Replaced deprecated PyImport_ImportModuleNoBlock
with PyImport_ImportModule (GH-30046)
This commit is contained in:
parent
e6fe10d340
commit
41026c3155
12 changed files with 17 additions and 16 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue