Merged revisions 69425 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69425 | nick.coghlan | 2009-02-08 13:17:00 +1000 (Sun, 08 Feb 2009) | 1 line

  Issue #4512 closeout: Make ZipImport.get_filename() a public method
........
This commit is contained in:
Nick Coghlan 2009-02-08 03:37:27 +00:00
parent 3f48ae35c7
commit 9a1d6e3022
4 changed files with 21 additions and 9 deletions

View file

@ -363,7 +363,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;
@ -543,7 +543,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.");
@ -558,7 +558,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},