Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b69b2e5

Browse files
committed
Remove duplicate refs to int from int/long unification presumably. (There might be more refs like these.)
1 parent ba7bf49 commit b69b2e5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/copy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def copy(x):
9999

100100
def _copy_immutable(x):
101101
return x
102-
for t in (type(None), int, int, float, bool, str, tuple,
102+
for t in (type(None), int, float, bool, str, tuple,
103103
frozenset, type, xrange, types.ClassType,
104104
types.BuiltinFunctionType,
105105
types.FunctionType):
@@ -178,7 +178,6 @@ def _deepcopy_atomic(x, memo):
178178
return x
179179
d[type(None)] = _deepcopy_atomic
180180
d[int] = _deepcopy_atomic
181-
d[int] = _deepcopy_atomic
182181
d[float] = _deepcopy_atomic
183182
d[bool] = _deepcopy_atomic
184183
try:

0 commit comments

Comments
 (0)