aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2021-12-12 14:15:20 +0530
committerGitHub <noreply@github.com>2021-12-12 10:45:20 +0200
commit41026c3155012d6ea50e01205c163b6739c675b8 (patch)
treeefcb12a3838254362917553af0b6cfb230e2e7d1 /Python/codecs.c
parente6fe10d34096a23be7d26271cf6aba429313b01d (diff)
downloadcpython-41026c3155012d6ea50e01205c163b6739c675b8.tar.gz
cpython-41026c3155012d6ea50e01205c163b6739c675b8.zip
bpo-45855: Replaced deprecated `PyImport_ImportModuleNoBlock` with PyImport_ImportModule (GH-30046)
Diffstat (limited to 'Python/codecs.c')
-rw-r--r--Python/codecs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index b7c8db7e8b6..343b6e2d033 100644
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -1527,7 +1527,7 @@ static int _PyCodecRegistry_Init(void)
}
}
- mod = PyImport_ImportModuleNoBlock("encodings");
+ mod = PyImport_ImportModule("encodings");
if (mod == NULL) {
return -1;
}