Commit 795b33a9 authored by Torsten Landschoff's avatar Torsten Landschoff

Cleanup unneeded cpdefs and public declarations.

Per Stefan's comment these are unneeded and actually the tests still pass.
parent 06970fb7
...@@ -40,18 +40,18 @@ cdef class TpClearFixture: ...@@ -40,18 +40,18 @@ cdef class TpClearFixture:
'NULL' 'NULL'
""" """
cdef public object any_object cdef readonly object any_object
cdef public ExtensionType extension_type cdef readonly ExtensionType extension_type
def __cinit__(self): def __cinit__(self):
self.any_object = "Hello World" self.any_object = "Hello World"
self.extension_type = ExtensionType() self.extension_type = ExtensionType()
cpdef public call_tp_clear(self): def call_tp_clear(self):
cdef PyTypeObject *pto = Py_TYPE(self) cdef PyTypeObject *pto = Py_TYPE(self)
pto.tp_clear(self) pto.tp_clear(self)
cpdef public str check_any_object_status(self): def check_any_object_status(self):
if <void*>(self.any_object) == NULL: if <void*>(self.any_object) == NULL:
return 'NULL' return 'NULL'
elif self.any_object is None: elif self.any_object is None:
...@@ -59,7 +59,7 @@ cdef class TpClearFixture: ...@@ -59,7 +59,7 @@ cdef class TpClearFixture:
else: else:
return 'not cleared' return 'not cleared'
cpdef public str check_extension_type_status(self): def check_extension_type_status(self):
if <void*>(self.any_object) == NULL: if <void*>(self.any_object) == NULL:
return 'NULL' return 'NULL'
elif self.any_object is None: elif self.any_object is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment