Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1757:c98fd943557c
Date: 2015-04-20 11:38 +0200
http://bitbucket.org/pypy/stmgc/changeset/c98fd943557c/

Log:    oups, inspired by a Command in pypy, but this is actually a Function

diff --git a/c7/gdb/gdb_stm.py b/c7/gdb/gdb_stm.py
--- a/c7/gdb/gdb_stm.py
+++ b/c7/gdb/gdb_stm.py
@@ -27,10 +27,11 @@
         __doc__ = func.__doc__
         def invoke(self, *args, **kwds):
             try:
-                func(*args, **kwds)
+                return func(*args, **kwds)
             except:
                 import traceback
                 traceback.print_exc()
+                raise
     Func(func.__name__)
 
 # -------------------------------------------------------
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to