[pypy-svn] r73475 - pypy/branch/cpython-extension/pypy/module/cpyext

xoraxax at codespeak.net xoraxax at codespeak.net
Wed Apr 7 00:47:46 CEST 2010


Author: xoraxax
Date: Wed Apr  7 00:47:44 2010
New Revision: 73475

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py
Log:
Fix translation.

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py	Wed Apr  7 00:47:44 2010
@@ -326,12 +326,9 @@
         ref[0] = rffi.cast(rffi.INT, space.int_w(space.len(w_obj)))
     return 1
 
-def get_helper(space, func):
-    return llhelper(func.api_func.functype, func.api_func.get_wrapper(space))
-
 def setup_string_buffer_procs(space, pto):
     c_buf = lltype.malloc(PyBufferProcs, flavor='raw', zero=True)
-    c_buf.c_bf_getsegcount = get_helper(space, str_segcount)
+    c_buf.c_bf_getsegcount = llhelper(str_segcount.api_func.functype, str_segcount.api_func.get_wrapper(space))
     pto.c_tp_as_buffer = c_buf
 
 @cpython_api([PyObject], lltype.Void, external=False)



More information about the Pypy-commit mailing list