From: <fwi...@us...> - 2009-08-31 18:46:13
|
Revision: 6735 http://jython.svn.sourceforge.net/jython/?rev=6735&view=rev Author: fwierzbicki Date: 2009-08-31 18:46:06 +0000 (Mon, 31 Aug 2009) Log Message: ----------- Fix for http://bugs.jython.org/issue1424 "Relative imports do not work in some cases". Modified Paths: -------------- trunk/jython/src/org/python/core/imp.java Modified: trunk/jython/src/org/python/core/imp.java =================================================================== --- trunk/jython/src/org/python/core/imp.java 2009-08-31 17:40:57 UTC (rev 6734) +++ trunk/jython/src/org/python/core/imp.java 2009-08-31 18:46:06 UTC (rev 6735) @@ -619,7 +619,7 @@ */ private static PyObject import_next(PyObject mod, StringBuilder parentNameBuffer, String name, String outerFullName, PyObject fromlist) { - if (parentNameBuffer.length() > 0) { + if (parentNameBuffer.length() > 0 && name != null && name.length() > 0) { parentNameBuffer.append('.'); } parentNameBuffer.append(name); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |