Commit b19e2a38 authored by Guido van Rossum's avatar Guido van Rossum

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

would still try to call the class...
parent c4f1ca19
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment