[pypy-svn] pypy jitypes2: allow CDLL(None) now that it no longer segfaults

antocuni commits-noreply at bitbucket.org
Tue Jan 18 11:07:14 CET 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r40837:d4113028efa3
Date: 2011-01-18 11:06 +0100
http://bitbucket.org/pypy/pypy/changeset/d4113028efa3/

Log:	allow CDLL(None) now that it no longer segfaults

diff --git a/lib-python/modified-2.7.0/ctypes/__init__.py b/lib-python/modified-2.7.0/ctypes/__init__.py
--- a/lib-python/modified-2.7.0/ctypes/__init__.py
+++ b/lib-python/modified-2.7.0/ctypes/__init__.py
@@ -350,7 +350,7 @@
             _restype_ = self._func_restype_
         self._FuncPtr = _FuncPtr
 
-        if handle is None and name is not None:
+        if handle is None:
             #self._handle = _dlopen(self._name, mode)
             self._handle = _ffi.CDLL(name)
         else:


More information about the Pypy-commit mailing list