# HG changeset patch # User Chong Yidong # Date 1161525842 0 # Node ID 8ac53fe6c9dca069b5d478eea19fa3532d2902b5 # Parent 12bc7c50359c2beb26e2fab1eafbeedce1c586dd * emacs.py (eargs): Return expected _emacs_out string even if errors occur. diff -r 12bc7c50359c -r 8ac53fe6c9dc etc/emacs.py --- a/etc/emacs.py Sun Oct 22 05:40:08 2006 +0000 +++ b/etc/emacs.py Sun Oct 22 14:04:02 2006 +0000 @@ -59,13 +59,16 @@ 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