mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
SF patch #701494: more apply removals
This commit is contained in:
parent
50c61d5a6c
commit
ff41c48a77
23 changed files with 2437 additions and 2449 deletions
|
@ -249,7 +249,7 @@ def askinteger(title, prompt, **kw):
|
|||
|
||||
Return value is an integer
|
||||
'''
|
||||
d = apply(_QueryInteger, (title, prompt), kw)
|
||||
d = _QueryInteger(title, prompt, **kw)
|
||||
return d.result
|
||||
|
||||
class _QueryFloat(_QueryDialog):
|
||||
|
@ -268,7 +268,7 @@ def askfloat(title, prompt, **kw):
|
|||
|
||||
Return value is a float
|
||||
'''
|
||||
d = apply(_QueryFloat, (title, prompt), kw)
|
||||
d = _QueryFloat(title, prompt, **kw)
|
||||
return d.result
|
||||
|
||||
class _QueryString(_QueryDialog):
|
||||
|
@ -300,7 +300,7 @@ def askstring(title, prompt, **kw):
|
|||
|
||||
Return value is a string
|
||||
'''
|
||||
d = apply(_QueryString, (title, prompt), kw)
|
||||
d = _QueryString(title, prompt, **kw)
|
||||
return d.result
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue