Author: Wim Lavrijsen <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit