mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue