diff options
author | Guido van Rossum <guido@python.org> | 1998-09-21 14:53:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-09-21 14:53:26 (GMT) |
commit | f07029e4ba29135368e92a79541ae148d5c7593f (patch) | |
tree | 724635650cad2dca11c437e54508bfca9072aa81 /Lib/rexec.py | |
parent | e3f8a64906257a2954d083d2960ff7fa135ccbf9 (diff) | |
download | cpython-f07029e4ba29135368e92a79541ae148d5c7593f.zip cpython-f07029e4ba29135368e92a79541ae148d5c7593f.tar.gz cpython-f07029e4ba29135368e92a79541ae148d5c7593f.tar.bz2 |
Get rid of the classes RModuleLoader and RModuleImporter -- these were
only there to override reload() in a way that doesn't make a whole lot
of sense and moreover broke since the latest changes in ihooks.
Diffstat (limited to 'Lib/rexec.py')
-rw-r--r-- | Lib/rexec.py | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/Lib/rexec.py b/Lib/rexec.py index 792fb8e..6ad53b5 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py @@ -107,22 +107,9 @@ class RHooks(ihooks.Hooks): return self.rexec.modules['sys'].path -class RModuleLoader(ihooks.FancyModuleLoader): - - def load_module(self, name, stuff): - file, filename, info = stuff - m = ihooks.FancyModuleLoader.load_module(self, name, stuff) - m.__filename__ = filename - return m - - -class RModuleImporter(ihooks.ModuleImporter): - - def reload(self, module, path=None): - if path is None and hasattr(module, '__filename__'): - head, tail = os.path.split(module.__filename__) - path = [os.path.join(head, '')] - return ihooks.ModuleImporter.reload(self, module, path) +# XXX Backwards compatibility +RModuleLoader = ihooks.FancyModuleLoader +RModuleImporter = ihooks.ModuleImporter class RExec(ihooks._Verbose): |