[pypy-commit] cffi cffi-1.0: Rename the types, which are not available in the cffi module

arigo noreply at buildbot.pypy.org
Sun Apr 26 10:59:42 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r1835:5e6d6dfcf4e7
Date: 2015-04-26 10:55 +0200
http://bitbucket.org/cffi/cffi/changeset/5e6d6dfcf4e7/

Log:	Rename the types, which are not available in the cffi module

diff --git a/_cffi1/cglob.c b/_cffi1/cglob.c
--- a/_cffi1/cglob.c
+++ b/_cffi1/cglob.c
@@ -15,7 +15,7 @@
 
 static PyTypeObject GlobSupport_Type = {
     PyVarObject_HEAD_INIT(NULL, 0)
-    "cffi.GlobSupport",
+    "FFIGlobSupport",
     sizeof(GlobSupportObject),
     0,
     (destructor)glob_support_dealloc,           /* tp_dealloc */
diff --git a/_cffi1/ffi_obj.c b/_cffi1/ffi_obj.c
--- a/_cffi1/ffi_obj.c
+++ b/_cffi1/ffi_obj.c
@@ -713,7 +713,7 @@
 
 static PyTypeObject FFI_Type = {
     PyVarObject_HEAD_INIT(NULL, 0)
-    "cffi.FFI",
+    "FFI",
     sizeof(FFIObject),
     0,
     (destructor)ffi_dealloc,                    /* tp_dealloc */
diff --git a/_cffi1/lib_obj.c b/_cffi1/lib_obj.c
--- a/_cffi1/lib_obj.c
+++ b/_cffi1/lib_obj.c
@@ -69,7 +69,7 @@
 
 static PyObject *lib_repr(LibObject *lib)
 {
-    return PyText_FromFormat("<cffi.Lib object for '%.200s'>",
+    return PyText_FromFormat("<Lib object for '%.200s'>",
                              PyText_AS_UTF8(lib->l_libname));
 }
 
@@ -284,7 +284,7 @@
 
 static PyTypeObject Lib_Type = {
     PyVarObject_HEAD_INIT(NULL, 0)
-    "cffi.Lib",
+    "Lib",
     sizeof(LibObject),
     0,
     (destructor)lib_dealloc,                    /* tp_dealloc */


More information about the pypy-commit mailing list