]> granicus.if.org Git - python/commitdiff
Whoops! Add a missing 'instantiated = 1' to load_inst(); otherwise it
authorGuido van Rossum <guido@python.org>
Mon, 13 Apr 1998 18:08:45 +0000 (18:08 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 13 Apr 1998 18:08:45 +0000 (18:08 +0000)
would still try to call the class...

Lib/pickle.py

index a5f4b29cc77e7a1be2ab156b72577cd505f9d540..bf735994fe9d14ac18e24df3625e7ea8bca10b82 100644 (file)
@@ -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