[pypy-commit] pypy default: kill old commented out code which comes from the old version of ctypes

antocuni noreply at buildbot.pypy.org
Mon Jun 6 17:24:30 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r44753:0529e7834944
Date: 2011-06-06 17:24 +0200
http://bitbucket.org/pypy/pypy/changeset/0529e7834944/

Log:	kill old commented out code which comes from the old version of
	ctypes

diff --git a/lib-python/modified-2.7/ctypes/__init__.py b/lib-python/modified-2.7/ctypes/__init__.py
--- a/lib-python/modified-2.7/ctypes/__init__.py
+++ b/lib-python/modified-2.7/ctypes/__init__.py
@@ -351,7 +351,6 @@
         self._FuncPtr = _FuncPtr
 
         if handle is None:
-            #self._handle = _dlopen(self._name, mode)
             self._handle = _ffi.CDLL(name)
         else:
             self._handle = handle
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
@@ -341,7 +341,6 @@
         result = self._call_funcptr(funcptr, *newargs)
         result = self._do_errcheck(result, args)
 
-        #return result
         if not outargs:
             return result
         if len(outargs) == 1:
@@ -356,8 +355,6 @@
             set_last_error(_rawffi.get_last_error())
         try:
             result = funcptr(*newargs)
-            ## resbuffer = funcptr(*[arg._get_buffer_for_param()._buffer
-            ##                       for arg in args])
         finally:
             if self._flags_ & _rawffi.FUNCFLAG_USE_ERRNO:
                 set_errno(_rawffi.get_errno())
@@ -408,7 +405,6 @@
         
         cdll = self.dll._handle
         try:
-            #return cdll.ptr(self.name, argshapes, resshape, self._flags_)
             ffi_argtypes = [argtype.get_ffi_argtype() for argtype in argtypes]
             ffi_restype = restype.get_ffi_argtype()
             self._ptr = cdll.getfunc(self.name, ffi_argtypes, ffi_restype)


More information about the pypy-commit mailing list