diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2009-02-08 03:17:00 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2009-02-08 03:17:00 (GMT) |
commit | 0194f5bc98d3fb3e7b4aaed874edf2df3a33bfd3 (patch) | |
tree | 86c78fe24cd43fc089a90497cd830cbba20783e4 /Modules | |
parent | c3623b1849136d9825e8dad2fa893c06696c804d (diff) | |
download | cpython-0194f5bc98d3fb3e7b4aaed874edf2df3a33bfd3.zip cpython-0194f5bc98d3fb3e7b4aaed874edf2df3a33bfd3.tar.gz cpython-0194f5bc98d3fb3e7b4aaed874edf2df3a33bfd3.tar.bz2 |
Issue #4512 closeout: Make ZipImport.get_filename() a public method
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/zipimport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c index e320dd9..b05de24 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}, |