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
1 changed files with 1 additions and 0 deletions

View File

@ -272,6 +272,7 @@ def load_module(self, name, stuff):
if type == FROZEN_MODULE: if type == FROZEN_MODULE:
code = self.hooks.get_frozen_object(name) code = self.hooks.get_frozen_object(name)
elif type == PY_COMPILED: elif type == PY_COMPILED:
import marshal
file.seek(8) file.seek(8)
code = marshal.load(file) code = marshal.load(file)
elif type == PY_SOURCE: elif type == PY_SOURCE: