summaryrefslogtreecommitdiffstats
path: root/Lib/copy.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/copy.py')
-rw-r--r--Lib/copy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/copy.py b/Lib/copy.py
index cf0b1af..21be6bc 100644
--- a/Lib/copy.py
+++ b/Lib/copy.py
@@ -158,7 +158,7 @@ def deepcopy(x, memo = None):
if memo is None:
memo = {}
d = id(x)
- if memo.has_key(d):
+ if d in memo:
return memo[d]
try:
copierfunction = _deepcopy_dispatch[type(x)]