Author: mattip <[email protected]>
Branch: 
Changeset: r72119:765614ef397c
Date: 2014-06-20 14:41 +0300
http://bitbucket.org/pypy/pypy/changeset/765614ef397c/

Log:    fix use of deprecated _ctypes.call_function in win32 only ctypes -A
        test, since it is not yet removed.

diff --git a/lib_pypy/_ctypes/function.py b/lib_pypy/_ctypes/function.py
--- a/lib_pypy/_ctypes/function.py
+++ b/lib_pypy/_ctypes/function.py
@@ -219,6 +219,8 @@
             if restype is None:
                 import ctypes
                 restype = ctypes.c_int
+            if self._argtypes_ is None:
+                self._argtypes_ = []
             self._ptr = self._getfuncptr_fromaddress(self._argtypes_, restype)
             self._check_argtypes_for_fastpath()
             return
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to