[pypy-commit] pypy default: wrap -> newtext, but never reachable right now

arigo pypy.commits at gmail.com
Tue Feb 21 04:27:33 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r90246:3a0d83a1dcc2
Date: 2017-02-21 09:23 +0100
http://bitbucket.org/pypy/pypy/changeset/3a0d83a1dcc2/

Log:	wrap -> newtext, but never reachable right now

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
@@ -36,7 +36,7 @@
     try:
         cdll = capi.c_load_dictionary(name)
         if not cdll:
-           raise OperationError(space.w_RuntimeError, space.wrap(str("could not load dictionary " + name)))
+           raise OperationError(space.w_RuntimeError, space.newtext(str("could not load dictionary " + name)))
 
     except rdynload.DLOpenError as e:
         if hasattr(space, "fake"):      # FakeSpace fails e.msg (?!)


More information about the pypy-commit mailing list