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

fix bogus hasttr usage

üst 2e0d2dd2
......@@ -115,7 +115,7 @@ def _copy_inst(x):
state = x.__getstate__()
else:
state = x.__dict__
if y.hasattr('__setstate__'):
if hasattr(y, '__setstate__'):
y.__setstate__(state)
else:
for key in state.keys():
......@@ -209,7 +209,7 @@ def _deepcopy_inst(x, memo):
else:
state = x.__dict__
state = deepcopy(state, memo)
if y.hasattr('__setstate__'):
if hasattr(y, '__setstate__'):
y.__setstate__(state)
else:
for key in state.keys():
......
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