Author: Armin Rigo <[email protected]>
Branch: ffi-backend
Changeset: r55946:476ceee8265c
Date: 2012-07-06 17:04 +0200
http://bitbucket.org/pypy/pypy/changeset/476ceee8265c/

Log:    Typos

diff --git a/pypy/module/_cffi_backend/cdataobj.py 
b/pypy/module/_cffi_backend/cdataobj.py
--- a/pypy/module/_cffi_backend/cdataobj.py
+++ b/pypy/module/_cffi_backend/cdataobj.py
@@ -187,7 +187,7 @@
 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):
diff --git a/pypy/module/_cffi_backend/ctypeobj.py 
b/pypy/module/_cffi_backend/ctypeobj.py
--- a/pypy/module/_cffi_backend/ctypeobj.py
+++ b/pypy/module/_cffi_backend/ctypeobj.py
@@ -117,7 +117,7 @@
     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(
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to