Author: Armin Rigo <[email protected]>
Branch: cffi-1.0
Changeset: r77260:64e57ef4ab86
Date: 2015-05-09 20:38 +0200
http://bitbucket.org/pypy/pypy/changeset/64e57ef4ab86/

Log:    Forgot to add '...'

diff --git a/pypy/module/_cffi_backend/realize_c_type.py 
b/pypy/module/_cffi_backend/realize_c_type.py
--- a/pypy/module/_cffi_backend/realize_c_type.py
+++ b/pypy/module/_cffi_backend/realize_c_type.py
@@ -179,7 +179,10 @@
 
     def unexpected_fn_type(self, ffi):
         fargs, fret, ellipsis = self._unpack(ffi)
-        sargs = ', '.join([farg.name for farg in fargs])
+        argnames = [farg.name for farg in fargs]
+        if ellipsis:
+            argnames.append('...')
+        sargs = ', '.join(argnames)
         sret1 = fret.name[:fret.name_position]
         sret2 = fret.name[fret.name_position:]
         raise oefmt(ffi.w_FFIError,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to