replace has_key with 'in' operator

This commit is contained in:
Benjamin Peterson 2009-10-09 22:15:50 +00:00
parent de0559998f
commit 6e3dbbdf39
29 changed files with 71 additions and 71 deletions

View file

@ -283,7 +283,7 @@ def askfloat(title, prompt, **kw):
class _QueryString(_QueryDialog):
def __init__(self, *args, **kw):
if kw.has_key("show"):
if "show" in kw:
self.__show = kw["show"]
del kw["show"]
else: