summaryrefslogtreecommitdiffstats
path: root/Lib/copy.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-06-07 13:11:04 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-06-07 13:11:04 (GMT)
commit756f139b976890d5ad3a57cea840a7e8172a7070 (patch)
treed4955249ed72d0d51e6e3d78c593ce5f2c9c6351 /Lib/copy.py
parenta92b446e7e1a9d7e1a564e1ba716331ec03d4470 (diff)
downloadcpython-756f139b976890d5ad3a57cea840a7e8172a7070.zip
cpython-756f139b976890d5ad3a57cea840a7e8172a7070.tar.gz
cpython-756f139b976890d5ad3a57cea840a7e8172a7070.tar.bz2
Register a dispatcher for str8. (This makes test_copy.py pass again.)
Make registeration of str dispatcher unconditional.
Diffstat (limited to 'Lib/copy.py')
-rw-r--r--Lib/copy.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/copy.py b/Lib/copy.py
index cba83c1..d5a7153 100644
--- a/Lib/copy.py
+++ b/Lib/copy.py
@@ -184,12 +184,9 @@ try:
d[complex] = _deepcopy_atomic
except NameError:
pass
+d[str8] = _deepcopy_atomic
d[str] = _deepcopy_atomic
try:
- d[str] = _deepcopy_atomic
-except NameError:
- pass
-try:
d[types.CodeType] = _deepcopy_atomic
except AttributeError:
pass