From: <pj...@us...> - 2009-10-20 01:20:54
|
Revision: 6881 http://jython.svn.sourceforge.net/jython/?rev=6881&view=rev Author: pjenvey Date: 2009-10-20 01:20:43 +0000 (Tue, 20 Oct 2009) Log Message: ----------- avoid the types import Modified Paths: -------------- trunk/jython/Lib/site.py Modified: trunk/jython/Lib/site.py =================================================================== --- trunk/jython/Lib/site.py 2009-10-20 01:15:51 UTC (rev 6880) +++ trunk/jython/Lib/site.py 2009-10-20 01:20:43 UTC (rev 6881) @@ -60,8 +60,8 @@ import sys import os -import types import __builtin__ +ModuleType = type(os) def makepath(*paths): @@ -74,7 +74,7 @@ def abs__file__(): """Set all module' __file__ attribute to an absolute path""" for m in sys.modules.values(): - if not isinstance(m, types.ModuleType) or hasattr(m, '__loader__'): + if not isinstance(m, ModuleType) or hasattr(m, '__loader__'): # only modules need the abspath in Jython. and don't mess # with a PEP 302-supplied __file__ continue This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |