Commit 4e15599d authored by Guido van Rossum's avatar Guido van Rossum

Import marshal before using it :-(

parent 6afff613
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment