summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2021-12-12 08:45:20 (GMT)
committerGitHub <noreply@github.com>2021-12-12 08:45:20 (GMT)
commit41026c3155012d6ea50e01205c163b6739c675b8 (patch)
treeefcb12a3838254362917553af0b6cfb230e2e7d1 /Python/traceback.c
parente6fe10d34096a23be7d26271cf6aba429313b01d (diff)
downloadcpython-41026c3155012d6ea50e01205c163b6739c675b8.zip
cpython-41026c3155012d6ea50e01205c163b6739c675b8.tar.gz
cpython-41026c3155012d6ea50e01205c163b6739c675b8.tar.bz2
bpo-45855: Replaced deprecated `PyImport_ImportModuleNoBlock` with PyImport_ImportModule (GH-30046)
Diffstat (limited to 'Python/traceback.c')
-rw-r--r--Python/traceback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index b0ff5e9..4d6cbaa 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -447,7 +447,7 @@ display_source_line_with_margin(PyObject *f, PyObject *filename, int lineno, int
}
}
- io = PyImport_ImportModuleNoBlock("io");
+ io = PyImport_ImportModule("io");
if (io == NULL)
return -1;
binary = _PyObject_CallMethodId(io, &PyId_open, "Os", filename, "rb");