Import marshal before using it :-(

This commit is contained in:
Guido van Rossum 1996-06-17 17:10:45 +00:00
parent 6afff6139a
commit 4e15599daa

View 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: