commit | 6e3dbbdf39f3b4eb6f18c0165e446df17218b7dc | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Fri Oct 09 22:15:50 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Fri Oct 09 22:15:50 2009 +0000 |
tree | 09bb1d277d25af8ed32f042ff8fce5549105bc76 | |
parent | de0559998fef231efc9ecbdef5b3a195d4eaa28d [diff] [blame] |
replace has_key with 'in' operator
diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py index 625b31b..afe5658 100644 --- a/Lib/lib-tk/turtle.py +++ b/Lib/lib-tk/turtle.py
@@ -335,10 +335,10 @@ 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():