From: Guido van Rossum Date: Mon, 13 Apr 1998 18:08:45 +0000 (+0000) Subject: Whoops! Add a missing 'instantiated = 1' to load_inst(); otherwise it X-Git-Tag: v1.5.1~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b19e2a383c7e7b702a50508f42c94642b9047ec3;p=thirdparty%2FPython%2Fcpython.git Whoops! Add a missing 'instantiated = 1' to load_inst(); otherwise it would still try to call the class... --- diff --git a/Lib/pickle.py b/Lib/pickle.py index a5f4b29cc77e..bf735994fe9d 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