mirror of https://github.com/python/cpython
Whoops! Add a missing 'instantiated = 1' to load_inst(); otherwise it
would still try to call the class...
This commit is contained in:
parent
c4f1ca1967
commit
b19e2a383c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue