Merge "Use getfullargspec to inspect functions"
This commit is contained in:
commit
9c814da74b
@ -123,7 +123,7 @@ def expose(*args, **kwargs):
|
||||
)
|
||||
|
||||
pecan_json_decorate(callfunction)
|
||||
pecan.util._cfg(callfunction)['argspec'] = inspect.getargspec(f)
|
||||
pecan.util._cfg(callfunction)['argspec'] = inspect.getfullargspec(f)
|
||||
callfunction._wsme_definition = funcdef
|
||||
return callfunction
|
||||
|
||||
|
@ -37,7 +37,8 @@ def wrapfunc(f):
|
||||
|
||||
def getargspec(f):
|
||||
f = getattr(f, '_wsme_original_func', f)
|
||||
return inspect.getargspec(f)
|
||||
func_argspec = inspect.getfullargspec(f)
|
||||
return func_argspec[0:4]
|
||||
|
||||
|
||||
class FunctionArgument(object):
|
||||
|
Loading…
x
Reference in New Issue
Block a user