[pypy-svn] pypy jitypes2: (david, antocuni)

antocuni commits-noreply at bitbucket.org
Thu Jan 20 19:52:18 CET 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r41086:48b5966f73a2
Date: 2011-01-20 18:59 +0100
http://bitbucket.org/pypy/pypy/changeset/48b5966f73a2/

Log:	(david, antocuni) bah, the indentation level was wrong

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
@@ -563,19 +563,19 @@
             assert self._errcheck_ is None
             return result
 
-    def _convert_args(self, argtypes, args):
-        """
-        jit-friendly version assuming that len(argtypes) == len(args)
-        """
-        assert self._paramflags is None
-        try:
-            wrapped_args = [self._conv_param(argtypes[0], args[0], 0)]
-        except (UnicodeError, TypeError, ValueError), e:
-            raise ArgumentError(str(e))
-        assert len(wrapped_args) == len(args)
-        return wrapped_args
+        def _convert_args(self, argtypes, args):
+            """
+            jit-friendly version assuming that len(argtypes) == len(args)
+            """
+            assert self._paramflags is None
+            try:
+                wrapped_args = [self._conv_param(argtypes[0], args[0], 0)]
+            except (UnicodeError, TypeError, ValueError), e:
+                raise ArgumentError(str(e))
+            assert len(wrapped_args) == len(args)
+            return wrapped_args
 
-    def _unwrap_args(self, argtypes, args):
-        return [self._unwrap_single_arg(argtypes[0], args[0])]
+        def _unwrap_args(self, argtypes, args):
+            return [self._unwrap_single_arg(argtypes[0], args[0])]
 
     return CFuncPtr_1


More information about the Pypy-commit mailing list