Commits

Armin Rigo committed 476ceee

Typos

  • Participants
  • Parent commits 021afa2
  • Branches ffi-backend

Comments (0)

Files changed (2)

File pypy/module/_cffi_backend/cdataobj.py

 class W_CDataApplevelOwning(W_CData):
     """This is the abstract base class for classes that are of the app-level
     type '_cffi_backend.CDataOwn'.  These are weakrefable."""
-    _attrs_ = []
+    _attrs_ = ['_lifeline_']    # for weakrefs
     _immutable_ = True
 
     def _owning_num_bytes(self):

File pypy/module/_cffi_backend/ctypeobj.py

     def call(self, funcaddr, args_w):
         space = self.space
         raise operationerrfmt(space.w_TypeError,
-                              "cdata '%s' is not callable", ctype.name)
+                              "cdata '%s' is not callable", self.name)
 
 
 W_CType.typedef = TypeDef(