mirror of
https://github.com/python/cpython.git
synced 2025-09-16 13:47:31 +00:00
replace has_key with 'in' operator
This commit is contained in:
parent
de0559998f
commit
6e3dbbdf39
29 changed files with 71 additions and 71 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue