[pypy-commit] stmgc default: oups, inspired by a Command in pypy, but this is actually a Function

arigo noreply at buildbot.pypy.org
Mon Apr 20 11:37:40 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
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__)
 
 # -------------------------------------------------------


More information about the pypy-commit mailing list