Skip to content

Commit 7710226

Browse files
committed
revert
1 parent 3fb1e6c commit 7710226

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Lib/copy.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ def copy(x):
107107
weakref.ref, super})
108108
_copy_builtin_containers = frozenset({list, dict, set, bytearray})
109109

110-
import _testcapi
111-
_testcapi.pyobject_enable_deferred_refcount(_copy_atomic_types)
112-
_testcapi.pyobject_enable_deferred_refcount(_copy_builtin_containers)
113-
114110
def deepcopy(x, memo=None):
115111
"""Deep copy operation on arbitrary Python objects.
116112
@@ -172,11 +168,6 @@ def deepcopy(x, memo=None):
172168

173169
_deepcopy_dispatch = d = {}
174170

175-
#import _testcapi
176-
#_testcapi.pyobject_enable_deferred_refcount(_atomic_types)
177-
#_testcapi.pyobject_enable_deferred_refcount(_deepcopy_dispatch)
178-
179-
180171

181172
def _deepcopy_list(x, memo, deepcopy=deepcopy):
182173
y = []

0 commit comments

Comments
 (0)