mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +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:
|
try:
|
||||||
value = _EmptyClass()
|
value = _EmptyClass()
|
||||||
value.__class__ = klass
|
value.__class__ = klass
|
||||||
|
instantiated = 1
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
# In restricted execution, assignment to inst.__class__ is
|
# In restricted execution, assignment to inst.__class__ is
|
||||||
# prohibited
|
# prohibited
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue