Kaydet (Commit) abfd8064 authored tarafından Guido van Rossum's avatar Guido van Rossum

This is the third time I check in this change :-(

Don't use assignments into inst.__dict__ to restore instance
variables; use setattr() instead.
üst 99d90c0d
......@@ -522,9 +522,8 @@ class Unpickler:
try:
setstate = inst.__setstate__
except AttributeError:
instdict = inst.__dict__
for key in value.keys():
instdict[key] = value[key]
setattr(inst, key, value[key])
else:
setstate(value)
dispatch[BUILD] = load_build
......
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