From 795b33a9d73dd0406ebae184b90107471f67b0c7 Mon Sep 17 00:00:00 2001 From: Torsten Landschoff Date: Tue, 6 Aug 2013 17:27:58 +0200 Subject: [PATCH] Cleanup unneeded cpdefs and public declarations. Per Stefan's comment these are unneeded and actually the tests still pass. --- tests/run/clear_to_null.pyx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/run/clear_to_null.pyx b/tests/run/clear_to_null.pyx index 6e49e03..c8a3555 100644 --- a/tests/run/clear_to_null.pyx +++ b/tests/run/clear_to_null.pyx @@ -40,18 +40,18 @@ cdef class TpClearFixture: 'NULL' """ - cdef public object any_object - cdef public ExtensionType extension_type + cdef readonly object any_object + cdef readonly ExtensionType extension_type def __cinit__(self): self.any_object = "Hello World" self.extension_type = ExtensionType() - cpdef public call_tp_clear(self): + def call_tp_clear(self): cdef PyTypeObject *pto = Py_TYPE(self) pto.tp_clear(self) - cpdef public str check_any_object_status(self): + def check_any_object_status(self): if (self.any_object) == NULL: return 'NULL' elif self.any_object is None: @@ -59,7 +59,7 @@ cdef class TpClearFixture: else: return 'not cleared' - cpdef public str check_extension_type_status(self): + def check_extension_type_status(self): if (self.any_object) == NULL: return 'NULL' elif self.any_object is None: -- 2.7.4