Author: Antonio Cuni <[email protected]>
Branch: ffistruct
Changeset: r55121:e4072dd3977e
Date: 2012-05-17 09:59 +0200
http://bitbucket.org/pypy/pypy/changeset/e4072dd3977e/
Log: bah, missing import and space.wrap()
diff --git a/pypy/module/_ffi/type_converter.py
b/pypy/module/_ffi/type_converter.py
--- a/pypy/module/_ffi/type_converter.py
+++ b/pypy/module/_ffi/type_converter.py
@@ -2,7 +2,7 @@
from pypy.rlib import jit
from pypy.rlib.rarithmetic import intmask, r_uint
from pypy.rpython.lltypesystem import rffi
-from pypy.interpreter.error import operationerrfmt
+from pypy.interpreter.error import operationerrfmt, OperationError
from pypy.module._rawffi.structure import W_StructureInstance, W_Structure
from pypy.module._ffi.interp_ffitype import app_types
@@ -240,7 +240,8 @@
elif isinstance(w_structdescr, W_Structure):
return self.get_struct_rawffi(w_ffitype, w_structdescr)
else:
- raise OperationError(self.space.w_TypeError, "Unsupported
struct shape")
+ raise OperationError(self.space.w_TypeError,
+ self.space.wrap("Unsupported struct
shape"))
elif w_ffitype.is_void():
voidval = self.get_void(w_ffitype)
assert voidval is None
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit