Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e15599

Browse files
committed
Import marshal before using it :-(
1 parent 6afff61 commit 4e15599

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/ihooks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ def load_module(self, name, stuff):
272272
if type == FROZEN_MODULE:
273273
code = self.hooks.get_frozen_object(name)
274274
elif type == PY_COMPILED:
275+
import marshal
275276
file.seek(8)
276277
code = marshal.load(file)
277278
elif type == PY_SOURCE:

0 commit comments

Comments
 (0)