From: <pj...@us...> - 2008-11-06 05:20:07
|
Revision: 5548 http://jython.svn.sourceforge.net/jython/?rev=5548&view=rev Author: pjenvey Date: 2008-11-06 05:20:01 +0000 (Thu, 06 Nov 2008) Log Message: ----------- __import__ requires __builtins__ to be initialized, use imp.load Modified Paths: -------------- trunk/jython/src/org/python/core/codecs.java Modified: trunk/jython/src/org/python/core/codecs.java =================================================================== --- trunk/jython/src/org/python/core/codecs.java 2008-11-05 17:51:34 UTC (rev 5547) +++ trunk/jython/src/org/python/core/codecs.java 2008-11-06 05:20:01 UTC (rev 5548) @@ -112,7 +112,7 @@ if (!import_encodings_called) { import_encodings_called = true; try { - __builtin__.__import__("encodings"); + imp.load("encodings"); } catch (PyException exc) { if (exc.type != Py.ImportError) { throw exc; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |