summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2009-02-08 03:17:00 +0000
committerNick Coghlan <ncoghlan@gmail.com>2009-02-08 03:17:00 +0000
commit69af364257b37145c8d39476c38e0bb95830a9a2 (patch)
treeb19ddf5057eb3e9315245d0fd7d9a75ef4274ec7 /Modules
parent264e00067cb8f6fdf581e07ff8cf958221cdad7a (diff)
downloadcpython-69af364257b37145c8d39476c38e0bb95830a9a2.tar.gz
Issue #4512 closeout: Make ZipImport.get_filename() a public method
Diffstat (limited to 'Modules')
-rw-r--r--Modules/zipimport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index e320dd9df8..b05de24b97 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -378,7 +378,7 @@ zipimporter_get_filename(PyObject *obj, PyObject *args)
char *fullname, *modpath;
int ispackage;
- if (!PyArg_ParseTuple(args, "s:zipimporter._get_filename",
+ if (!PyArg_ParseTuple(args, "s:zipimporter.get_filename",
&fullname))
return NULL;
@@ -553,7 +553,7 @@ contain the module, but has no source for it.");
PyDoc_STRVAR(doc_get_filename,
-"_get_filename(fullname) -> filename string.\n\
+"get_filename(fullname) -> filename string.\n\
\n\
Return the filename for the specified module.");
@@ -568,7 +568,7 @@ static PyMethodDef zipimporter_methods[] = {
doc_get_code},
{"get_source", zipimporter_get_source, METH_VARARGS,
doc_get_source},
- {"_get_filename", zipimporter_get_filename, METH_VARARGS,
+ {"get_filename", zipimporter_get_filename, METH_VARARGS,
doc_get_filename},
{"is_package", zipimporter_is_package, METH_VARARGS,
doc_is_package},