]> granicus.if.org Git - python/commitdiff
Import marshal before using it :-(
authorGuido van Rossum <guido@python.org>
Mon, 17 Jun 1996 17:10:45 +0000 (17:10 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 17 Jun 1996 17:10:45 +0000 (17:10 +0000)
Lib/ihooks.py

index a6ab1a5d7000ccebcfe6c14b7ccd3d915d1556fe..bdc48e1dfd6e3f0e6f3a0db1a6e03806873fc82b 100644 (file)
@@ -272,6 +272,7 @@ class FancyModuleLoader(ModuleLoader):
        if type == FROZEN_MODULE:
            code = self.hooks.get_frozen_object(name)
        elif type == PY_COMPILED:
+           import marshal
            file.seek(8)
            code = marshal.load(file)
        elif type == PY_SOURCE: