From b19e2a383c7e7b702a50508f42c94642b9047ec3 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 13 Apr 1998 18:08:45 +0000 Subject: Whoops! Add a missing 'instantiated = 1' to load_inst(); otherwise it would still try to call the class... --- Lib/pickle.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/pickle.py b/Lib/pickle.py index a5f4b29..bf73599 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -607,6 +607,7 @@ class Unpickler: try: value = _EmptyClass() value.__class__ = klass + instantiated = 1 except RuntimeError: # In restricted execution, assignment to inst.__class__ is # prohibited -- cgit v0.12