remove usage of the new module

--HG--
branch : trunk
This commit is contained in:
Benjamin Peterson
2009-08-29 15:14:18 -05:00
parent b3e8b2f6ab
commit 59892b8532
2 changed files with 5 additions and 5 deletions

View File

@@ -531,7 +531,7 @@ class LocalPath(FSBase):
return sys.modules[modname]
except KeyError:
# we have a custom modname, do a pseudo-import
mod = py.std.new.module(modname)
mod = py.std.types.ModuleType(modname)
mod.__file__ = str(self)
sys.modules[modname] = mod
try: