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

Skip to content

Commit 756f139

Browse files
committed
Register a dispatcher for str8. (This makes test_copy.py pass again.)
Make registeration of str dispatcher unconditional.
1 parent a92b446 commit 756f139

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Lib/copy.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,8 @@ def _deepcopy_atomic(x, memo):
184184
d[complex] = _deepcopy_atomic
185185
except NameError:
186186
pass
187+
d[str8] = _deepcopy_atomic
187188
d[str] = _deepcopy_atomic
188-
try:
189-
d[str] = _deepcopy_atomic
190-
except NameError:
191-
pass
192189
try:
193190
d[types.CodeType] = _deepcopy_atomic
194191
except AttributeError:

0 commit comments

Comments
 (0)