mirror of https://github.com/python/cpython.git
Import marshal before using it :-(
This commit is contained in:
parent
6afff6139a
commit
4e15599daa
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue