From: <pj...@us...> - 2009-10-23 01:53:08
|
Revision: 6888 http://jython.svn.sourceforge.net/jython/?rev=6888&view=rev Author: pjenvey Date: 2009-10-23 01:52:46 +0000 (Fri, 23 Oct 2009) Log Message: ----------- only import UserDict when necessary Modified Paths: -------------- trunk/jython/Lib/os.py Modified: trunk/jython/Lib/os.py =================================================================== --- trunk/jython/Lib/os.py 2009-10-21 01:58:03 UTC (rev 6887) +++ trunk/jython/Lib/os.py 2009-10-23 01:52:46 UTC (rev 6888) @@ -403,8 +403,6 @@ except NameError: pass else: - import UserDict - # Fake unsetenv() for Windows # not sure about os2 here but # I'm guessing they are the same. @@ -417,6 +415,8 @@ # On RISC OS, all env access goes through getenv and putenv from riscosenviron import _Environ elif _name in ('os2', 'nt'): # Where Env Var Names Must Be UPPERCASE + import UserDict + # But we store them as upper case class _Environ(UserDict.IterableUserDict): def __init__(self, environ): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |