Author: Maciej Fijalkowski <fij...@gmail.com> Branch: Changeset: r46180:b2f09d34ae71 Date: 2011-08-02 10:57 +0200 http://bitbucket.org/pypy/pypy/changeset/b2f09d34ae71/
Log: Don't repr the whole world and don't force tracebacks here diff --git a/pypy/objspace/flow/operation.py b/pypy/objspace/flow/operation.py --- a/pypy/objspace/flow/operation.py +++ b/pypy/objspace/flow/operation.py @@ -359,10 +359,10 @@ # All arguments are constants: call the operator now try: result = op(*args) - except: - etype, evalue, etb = sys.exc_info() - msg = "generated by a constant operation: %s%r" % ( - name, tuple(args)) + except Exception, e: + etype = e.__class__ + msg = "generated by a constant operation: %s" % ( + name) raise OperationThatShouldNotBePropagatedError( self.wrap(etype), self.wrap(msg)) else: _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit