* emacs.py (eargs): Return expected _emacs_out string even if
errors occur.
This commit is contained in:
parent
eb036ad0e2
commit
57d8692df7
1 changed files with 5 additions and 2 deletions
|
@ -59,13 +59,16 @@ def eargs (name, imports):
|
|||
return
|
||||
if inspect.ismethod (func):
|
||||
func = func.im_func
|
||||
if not inspect.isfunction (func): return
|
||||
if not inspect.isfunction (func):
|
||||
print '_emacs_out '
|
||||
return
|
||||
(args, varargs, varkw, defaults) = inspect.getargspec (func)
|
||||
# No space between name and arglist for consistency with builtins.
|
||||
print '_emacs_out', \
|
||||
func.__name__ + inspect.formatargspec (args, varargs, varkw,
|
||||
defaults)
|
||||
except: pass
|
||||
except:
|
||||
print "_emacs_out "
|
||||
|
||||
def all_names (object):
|
||||
"""Return (an approximation to) a list of all possible attribute
|
||||
|
|
Loading…
Add table
Reference in a new issue