[pypy-commit] pypy cffi_dlopen_unicode: update other users of W_Library to W_Root interface

mattip pypy.commits at gmail.com
Mon Oct 8 05:58:01 EDT 2018


Author: Matti Picus <matti.picus at gmail.com>
Branch: cffi_dlopen_unicode
Changeset: r95188:0e3e1d314c39
Date: 2018-10-08 12:55 +0300
http://bitbucket.org/pypy/pypy/changeset/0e3e1d314c39/

Log:	update other users of W_Library to W_Root interface

diff --git a/pypy/module/_cppyy/capi/loadable_capi.py b/pypy/module/_cppyy/capi/loadable_capi.py
--- a/pypy/module/_cppyy/capi/loadable_capi.py
+++ b/pypy/module/_cppyy/capi/loadable_capi.py
@@ -308,10 +308,10 @@
         dldflags = rdynload.RTLD_LOCAL | rdynload.RTLD_LAZY
         if os.environ.get('CPPYY_BACKEND_LIBRARY'):
             libname = os.environ['CPPYY_BACKEND_LIBRARY']
-            state.backend = W_Library(space, libname, dldflags)
+            state.backend = W_Library(space, space.newtext(libname), dldflags)
         else:
             # try usual lookups
-            state.backend = W_Library(space, backend_library, dldflags)
+            state.backend = W_Library(space, space.newtext(backend_library), dldflags)
 
         if state.backend:
             # fix constants


More information about the pypy-commit mailing list