Whoops! Add a missing 'instantiated = 1' to load_inst(); otherwise it

would still try to call the class...
This commit is contained in:
Guido van Rossum 1998-04-13 18:08:45 +00:00
parent c4f1ca1967
commit b19e2a383c
1 changed files with 1 additions and 0 deletions

View 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