mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Raise statement normalization in Lib/.
This commit is contained in:
parent
8b3febef2f
commit
ce36ad8a46
80 changed files with 502 additions and 530 deletions
|
@ -724,8 +724,8 @@ def getargspec(func):
|
|||
args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, ann = \
|
||||
getfullargspec(func)
|
||||
if kwonlyargs or ann:
|
||||
raise ValueError, ("Function has keyword-only arguments or annotations"
|
||||
", use getfullargspec() API which can support them")
|
||||
raise ValueError("Function has keyword-only arguments or annotations"
|
||||
", use getfullargspec() API which can support them")
|
||||
return (args, varargs, varkw, defaults)
|
||||
|
||||
def getfullargspec(func):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue