diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2021-12-12 08:45:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-12 08:45:20 (GMT) |
commit | 41026c3155012d6ea50e01205c163b6739c675b8 (patch) | |
tree | efcb12a3838254362917553af0b6cfb230e2e7d1 /Objects/capsule.c | |
parent | e6fe10d34096a23be7d26271cf6aba429313b01d (diff) | |
download | cpython-41026c3155012d6ea50e01205c163b6739c675b8.zip cpython-41026c3155012d6ea50e01205c163b6739c675b8.tar.gz cpython-41026c3155012d6ea50e01205c163b6739c675b8.tar.bz2 |
bpo-45855: Replaced deprecated `PyImport_ImportModuleNoBlock` with PyImport_ImportModule (GH-30046)
Diffstat (limited to 'Objects/capsule.c')
-rw-r--r-- | Objects/capsule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/capsule.c b/Objects/capsule.c index 800a6c4..9c9dcf3 100644 --- a/Objects/capsule.c +++ b/Objects/capsule.c @@ -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) { |