diff options
Diffstat (limited to 'Lib/copy.py')
-rw-r--r-- | Lib/copy.py | 2 |
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)] |