Author: mattip <matti.pi...@gmail.com>
Branch: 
Changeset: r77787:61595f3c9846
Date: 2015-06-02 21:12 +0300
http://bitbucket.org/pypy/pypy/changeset/61595f3c9846/

Log:    fix translation ("argument not constant")

diff --git a/pypy/module/_cffi_backend/ffi_obj.py 
b/pypy/module/_cffi_backend/ffi_obj.py
--- a/pypy/module/_cffi_backend/ffi_obj.py
+++ b/pypy/module/_cffi_backend/ffi_obj.py
@@ -99,7 +99,7 @@
         info = self.ctxobj.info
         errmsg = rffi.charp2str(info.c_error_message)
         if len(input_text) > 500:
-            raise oefmt(self.w_FFIError, errmsg)
+            raise oefmt(self.w_FFIError, "%s", errmsg)
         printable_text = ['?'] * len(input_text)
         for i in range(len(input_text)):
             if ' ' <= input_text[i] < '\x7f':
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to