Message2467

Author nobody
Recipients
Date 2005-10-24.21:09:21
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This bug was introduced in version 2.65.2.1 of
org/python/core/imp.java when the method

static PyObject loadFromPath(String name, String
modName, PyList path)

was substituted by the method

static PyObject loadFromSource(String name, String
modName, PyObject entry).

In this new method, case checks for files "__init__.py"
and "__init__$py.class" are being made passing the
length of the package's name. When the case of the
"__init__.py" file inside a directory named
"mod456789012" is checked, for instance, the name of
this file is compared against the string "__init__.py",
char by char in 12 iterations, since "mod456789012" has
12 characters. Since "__init__.py" has only 11
characters, the comparison fails and the package isn't
imported.

This bug is fixed by passing the correct length to the
method that does the case checking.
History
Date User Action Args
2008-02-20 17:18:30adminlinkissue1336768 messages
2008-02-20 17:18:30admincreate