]> git.eshelyaron.com Git - emacs.git/commitdiff
* emacs.py (eargs): Return expected _emacs_out string even if
authorChong Yidong <cyd@stupidchicken.com>
Sun, 22 Oct 2006 14:04:02 +0000 (14:04 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 22 Oct 2006 14:04:02 +0000 (14:04 +0000)
errors occur.

etc/emacs.py

index 7614f0927df3efce9a685a6ca63fb4dc9c535fa8..57128e2e184fce0f8d0e795d522ce2e91b79448e 100644 (file)
@@ -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