From: Chong Yidong Date: Sun, 22 Oct 2006 14:04:02 +0000 (+0000) Subject: * emacs.py (eargs): Return expected _emacs_out string even if X-Git-Tag: emacs-pretest-22.0.90~48 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=57d8692df7ccdf19339b4244edda29c309c65255;p=emacs.git * emacs.py (eargs): Return expected _emacs_out string even if errors occur. --- 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