Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e0d2dd commit fefbbe5Copy full SHA for fefbbe5
1 file changed
Lib/copy.py
@@ -115,7 +115,7 @@ def _copy_inst(x):
115
state = x.__getstate__()
116
else:
117
state = x.__dict__
118
- if y.hasattr('__setstate__'):
+ if hasattr(y, '__setstate__'):
119
y.__setstate__(state)
120
121
for key in state.keys():
@@ -209,7 +209,7 @@ def _deepcopy_inst(x, memo):
209
210
211
state = deepcopy(state, memo)
212
213
214
215
0 commit comments