summaryrefslogtreecommitdiffstats
path: root/Objects/capsule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/capsule.c')
-rw-r--r--Objects/capsule.c2
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) {