diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2006-10-22 14:04:02 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2006-10-22 14:04:02 +0000 |
commit | 57d8692df7ccdf19339b4244edda29c309c65255 (patch) | |
tree | b407ef20045ad39c9db7743e2668ba75570a3257 /etc/emacs.py | |
parent | eb036ad0e2d3ec97b482f402c4fac31f4f8f8e39 (diff) | |
download | emacs-57d8692df7ccdf19339b4244edda29c309c65255.tar.gz |
* emacs.py (eargs): Return expected _emacs_out string even if
errors occur.
Diffstat (limited to 'etc/emacs.py')
-rw-r--r-- | etc/emacs.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/emacs.py b/etc/emacs.py index 7614f0927df..57128e2e184 100644 --- a/etc/emacs.py +++ b/etc/emacs.py @@ -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 |