[Python-checkins] cpython: Issue #3080: find_module() sets an empty path for builtin and frozen modules (original) (raw)
victor.stinner python-checkins at python.org
Sun Mar 20 04:13:57 CET 2011
- Previous message: [Python-checkins] cpython: Issue #3080: Rename some path variables to path_list
- Next message: [Python-checkins] cpython: Issue #3080: Refactor find_module_path(), use return instead of break
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
http://hg.python.org/cpython/rev/c1a5a7dca1ec changeset: 68731:c1a5a7dca1ec user: Victor Stinner <victor.stinner at haypocalc.com> date: Mon Mar 14 13:40:04 2011 -0400 summary: Issue #3080: find_module() sets an empty path for builtin and frozen modules
files: Python/import.c
diff --git a/Python/import.c b/Python/import.c --- a/Python/import.c +++ b/Python/import.c @@ -1943,10 +1943,8 @@ Py_DECREF(meta_path); }
- if (find_frozen(fullname) != NULL) {
strcpy(buf, _PyUnicode_AsString(fullname));
- if (find_frozen(fullname) != NULL) return &fd_frozen;
}
if (search_path_list == NULL) {
#ifdef MS_COREDLL @@ -1954,10 +1952,8 @@ struct filedescr *fdp; PyObject *filename, *filename_bytes; #endif
if (is_builtin(name)) {
strcpy(buf, _PyUnicode_AsString(name));
if (is_builtin(name)) return &fd_builtin;
}
#ifdef MS_COREDLL fp = _PyWin_FindRegisteredModule(name, &fdp, &filename); if (fp != NULL) {
-- Repository URL: http://hg.python.org/cpython
- Previous message: [Python-checkins] cpython: Issue #3080: Rename some path variables to path_list
- Next message: [Python-checkins] cpython: Issue #3080: Refactor find_module_path(), use return instead of break
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]