summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorukwksk <ukwksk@gmail.com>2018-05-14 19:10:52 (GMT)
committerBrett Cannon <brettcannon@users.noreply.github.com>2018-05-14 19:10:52 (GMT)
commit5e6312c39e1fc32ecef18d340bcd5f7e314170e1 (patch)
tree4e1dec0ae95fc84d951f583b70c580b658a1cd01 /Python/import.c
parentf2290fb19a9b1a5fbeef0971016f72683e8cd1ad (diff)
downloadcpython-5e6312c39e1fc32ecef18d340bcd5f7e314170e1.zip
cpython-5e6312c39e1fc32ecef18d340bcd5f7e314170e1.tar.gz
cpython-5e6312c39e1fc32ecef18d340bcd5f7e314170e1.tar.bz2
bpo-33443 Fix typo in Python/import.c (GH-6722)
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/import.c b/Python/import.c
index bb1d69e..3a59183 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -92,7 +92,7 @@ _PyImportHooks_Init(void)
_PyInitError
_PyImportZip_Init(void)
{
- PyObject *path_hooks, *zimpimport;
+ PyObject *path_hooks, *zipimport;
int err = 0;
path_hooks = PySys_GetObject("path_hooks");
@@ -104,17 +104,17 @@ _PyImportZip_Init(void)
if (Py_VerboseFlag)
PySys_WriteStderr("# installing zipimport hook\n");
- zimpimport = PyImport_ImportModule("zipimport");
- if (zimpimport == NULL) {
+ zipimport = PyImport_ImportModule("zipimport");
+ if (zipimport == NULL) {
PyErr_Clear(); /* No zip import module -- okay */
if (Py_VerboseFlag)
PySys_WriteStderr("# can't import zipimport\n");
}
else {
_Py_IDENTIFIER(zipimporter);
- PyObject *zipimporter = _PyObject_GetAttrId(zimpimport,
+ PyObject *zipimporter = _PyObject_GetAttrId(zipimport,
&PyId_zipimporter);
- Py_DECREF(zimpimport);
+ Py_DECREF(zipimport);
if (zipimporter == NULL) {
PyErr_Clear(); /* No zipimporter object -- okay */
if (Py_VerboseFlag)