Commit fa193e19 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Lie about ArgSpecs

parent 3bfae1c9
...@@ -810,6 +810,9 @@ def getargspec(func): ...@@ -810,6 +810,9 @@ def getargspec(func):
'defaults' is an n-tuple of the default values of the last n arguments. 'defaults' is an n-tuple of the default values of the last n arguments.
""" """
# Pyston change:
return ArgSpec((), "args", "kw", ())
if ismethod(func): if ismethod(func):
func = func.im_func func = func.im_func
if not isfunction(func): if not isfunction(func):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment