From: Guido van Rossum Date: Mon, 17 Jun 1996 17:10:45 +0000 (+0000) Subject: Import marshal before using it :-( X-Git-Tag: v1.4b1~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e15599daac23ecb38abb5de69cf01a89a32b107;p=thirdparty%2FPython%2Fcpython.git Import marshal before using it :-( --- diff --git a/Lib/ihooks.py b/Lib/ihooks.py index a6ab1a5d7000..bdc48e1dfd6e 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: