summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-06-17 17:10:45 (GMT)
committerGuido van Rossum <guido@python.org>1996-06-17 17:10:45 (GMT)
commit4e15599daac23ecb38abb5de69cf01a89a32b107 (patch)
treed4b6648ad63d1137043ae36917e82e9ac2e34ac9 /Lib
parent6afff6139a445de62a9cb45dadf1b9ca905f2540 (diff)
downloadcpython-4e15599daac23ecb38abb5de69cf01a89a32b107.zip
cpython-4e15599daac23ecb38abb5de69cf01a89a32b107.tar.gz
cpython-4e15599daac23ecb38abb5de69cf01a89a32b107.tar.bz2
Import marshal before using it :-(
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ihooks.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/ihooks.py b/Lib/ihooks.py
index a6ab1a5..bdc48e1 100644
--- a/Lib/ihooks.py
+++ b/Lib/ihooks.py
@@ -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: