From: <fwi...@us...> - 2008-11-14 17:53:30
|
Revision: 5580 http://jython.svn.sourceforge.net/jython/?rev=5580&view=rev Author: fwierzbicki Date: 2008-11-14 17:53:21 +0000 (Fri, 14 Nov 2008) Log Message: ----------- Remove very old commented out code from imp.java. 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 2008-11-14 16:07:43 UTC (rev 5579) +++ trunk/jython/src/org/python/core/imp.java 2008-11-14 17:53:21 UTC (rev 5580) @@ -755,10 +755,6 @@ public static PyObject importOne(String mod, PyFrame frame) { PyObject module = __builtin__.__import__(mod, frame.f_globals, frame .getLocals(), Py.EmptyTuple); - /* - * int dot = mod.indexOf('.'); if (dot != -1) { mod = mod.substring(0, - * dot).intern(); } - */ return module; } @@ -769,7 +765,6 @@ public static PyObject importOneAs(String mod, PyFrame frame) { PyObject module = __builtin__.__import__(mod, frame.f_globals, frame .getLocals(), getStarArg()); - // frame.setlocal(asname, module); return module; } @@ -924,9 +919,6 @@ name = name.substring(dot + 1, name.length()).intern(); } - // This should be better "protected" - // ((PyStringMap)nm.__dict__).clear(); - nm.__setattr__("__name__", new PyString(modName)); PyObject ret = find_module(name, modName, path); modules.__setitem__(modName, ret); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |