[pypy-commit] pypy default: fix translation ("argument not constant")
mattip
noreply at buildbot.pypy.org
Tue Jun 2 20:12:10 CEST 2015
Author: mattip <matti.picus at 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':
More information about the pypy-commit
mailing list