[Python-checkins] r82691 - in python/branches/import_unicode: Include/import.h Python/import.c
victor.stinner
python-checkins at python.org
Fri Jul 9 01:32:51 CEST 2010
Author: victor.stinner
Date: Fri Jul 9 01:32:50 2010
New Revision: 82691
Log:
Remove unused private function _PyImport_FindModule()
Modified:
python/branches/import_unicode/Include/import.h
python/branches/import_unicode/Python/import.c
Modified: python/branches/import_unicode/Include/import.h
==============================================================================
--- python/branches/import_unicode/Include/import.h (original)
+++ python/branches/import_unicode/Include/import.h Fri Jul 9 01:32:50 2010
@@ -46,8 +46,7 @@
#define _PyImport_ReleaseLock() 1
#endif
-PyAPI_FUNC(struct filedescr *) _PyImport_FindModule(
- const char *, PyObject *, char *, size_t, FILE **, PyObject **);
+struct filedescr;
PyAPI_FUNC(int) _PyImport_IsScript(struct filedescr *);
PyAPI_FUNC(void) _PyImport_ReInitLock(void);
Modified: python/branches/import_unicode/Python/import.c
==============================================================================
--- python/branches/import_unicode/Python/import.c (original)
+++ python/branches/import_unicode/Python/import.c Fri Jul 9 01:32:50 2010
@@ -983,6 +983,7 @@
3147 style, NULL is returned. buf must be at least as big as pathname;
the resulting path will always be shorter. */
+/* FIXME: use Py_UNICODE* instead of char* */
static char *
_make_source_pathname(char *pathname, char *buf)
{
@@ -1914,14 +1915,6 @@
/* Helpers for main.c
* Find the source file corresponding to a named module
*/
-struct filedescr *
-_PyImport_FindModule(const char *name, PyObject *path, char *buf,
- size_t buflen, FILE **p_fp, PyObject **p_loader)
-{
- return find_module((char *) name, (char *) name, path,
- buf, buflen, p_fp, p_loader);
-}
-
PyAPI_FUNC(int) _PyImport_IsScript(struct filedescr * fd)
{
return fd->type == PY_SOURCE || fd->type == PY_COMPILED;
More information about the Python-checkins
mailing list