diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-10-09 22:15:50 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-10-09 22:15:50 +0000 |
commit | 6e3dbbdf39f3b4eb6f18c0165e446df17218b7dc (patch) | |
tree | 09bb1d277d25af8ed32f042ff8fce5549105bc76 /Lib/lib-tk/turtle.py | |
parent | de0559998fef231efc9ecbdef5b3a195d4eaa28d (diff) | |
download | cpython-git-6e3dbbdf39f3b4eb6f18c0165e446df17218b7dc.tar.gz |
replace has_key with 'in' operator
Diffstat (limited to 'Lib/lib-tk/turtle.py')
-rw-r--r-- | Lib/lib-tk/turtle.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py index 625b31bce7..afe5658cd9 100644 --- a/Lib/lib-tk/turtle.py +++ b/Lib/lib-tk/turtle.py @@ -335,10 +335,10 @@ def __forwardmethods(fromClass, toClass, toPart, exclude = ()): if ex[:1] == '_' or ex[-1:] == '_': del _dict[ex] for ex in exclude: - if _dict.has_key(ex): + if ex in _dict: del _dict[ex] for ex in __methods(fromClass): - if _dict.has_key(ex): + if ex in _dict: del _dict[ex] for method, func in _dict.items(): |