[pypy-commit] pypy default: directly import RawCDLL instead of relying on "import *"

mattip noreply at buildbot.pypy.org
Sat Jun 21 21:48:37 CEST 2014


Author: mattip <matti.picus at gmail.com>
Branch: 
Changeset: r72120:792c3453abff
Date: 2014-06-20 16:55 +0300
http://bitbucket.org/pypy/pypy/changeset/792c3453abff/

Log:	directly import RawCDLL instead of relying on "import *"

diff --git a/pypy/module/sys/vm.py b/pypy/module/sys/vm.py
--- a/pypy/module/sys/vm.py
+++ b/pypy/module/sys/vm.py
@@ -244,7 +244,8 @@
     handle = space.fromcache(State).get_pythonapi_handle()
 
     # Make a dll object with it
-    from pypy.module._rawffi.interp_rawffi import W_CDLL, RawCDLL
+    from pypy.module._rawffi.interp_rawffi import W_CDLL
+    from rpython.rlib.clibffi import RawCDLL
     cdll = RawCDLL(handle)
     return space.wrap(W_CDLL(space, "python api", cdll))
 


More information about the pypy-commit mailing list