Index: org/python/core/imp.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/imp.java,v retrieving revision 2.66 diff -u -r2.66 imp.java --- org/python/core/imp.java 24 Jun 2005 01:10:25 -0000 2.66 +++ org/python/core/imp.java 24 Oct 2005 20:19:26 -0000 @@ -391,8 +391,8 @@ m.__dict__.__setitem__("__file__", filename); } - if (sourceFile.isFile() && caseok(sourceFile, sourceName, nlen)) { - if (compiledFile.isFile() && caseok(compiledFile, compiledName, nlen)) { + if (sourceFile.isFile() && caseok(sourceFile, sourceName, sourceName.length())) { + if (compiledFile.isFile() && caseok(compiledFile, compiledName, compiledName.length())) { Py.writeDebug("import", "trying precompiled " + compiledFile.getPath()); long pyTime = sourceFile.lastModified(); long classTime = compiledFile.lastModified(); @@ -409,7 +409,7 @@ // If no source, try loading precompiled Py.writeDebug("import", "trying " + compiledFile.getPath()); - if (compiledFile.isFile() && caseok(compiledFile, compiledName, nlen)) { + if (compiledFile.isFile() && caseok(compiledFile, compiledName, compiledName.length())) { return createFromPyClass(modName, makeStream(compiledFile), false, compiledFile.getPath()); }