[pypy-commit] pypy cppyy-packaging: fix translation
wlav
pypy.commits at gmail.com
Mon Apr 23 23:11:09 EDT 2018
Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: cppyy-packaging
Changeset: r94434:43f7036815b1
Date: 2018-04-23 19:46 -0700
http://bitbucket.org/pypy/pypy/changeset/43f7036815b1/
Log: fix translation
diff --git a/pypy/module/_cppyy/interp_cppyy.py b/pypy/module/_cppyy/interp_cppyy.py
--- a/pypy/module/_cppyy/interp_cppyy.py
+++ b/pypy/module/_cppyy/interp_cppyy.py
@@ -236,9 +236,7 @@
what = rffi.cast(rffi.CCHARP, stat[1])
pywhat = rffi.charp2str(what)
capi.c_free(self.space, rffi.cast(rffi.VOIDP, what))
- if hasattr(self.space, "fake"):
- raise OperationError(self.space.w_Exception, self.space.newtext("C++ exception"))
- raise oefmt(self.space.w_Exception, pywhat)
+ raise OperationError(self.space.w_Exception, self.space.newtext(pywhat))
return result
finally:
self.finalize_call(args, args_w, call_local)
More information about the pypy-commit
mailing list