]> granicus.if.org Git - python/commitdiff
Get rid of the classes RModuleLoader and RModuleImporter -- these were
authorGuido van Rossum <guido@python.org>
Mon, 21 Sep 1998 14:53:26 +0000 (14:53 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 21 Sep 1998 14:53:26 +0000 (14:53 +0000)
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.

Lib/rexec.py

index 792fb8eabdf6b4f561c402e2c9df86f9d274690d..6ad53b5d8354edcace25271cb28bc62f7f21b01a 100644 (file)
@@ -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):