From: Torsten Landschoff Date: Tue, 6 Aug 2013 15:27:58 +0000 (+0200) Subject: Cleanup unneeded cpdefs and public declarations. X-Git-Tag: 0.20b1~418^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=795b33a9d73dd0406ebae184b90107471f67b0c7;p=platform%2Fupstream%2Fpython-cython.git Cleanup unneeded cpdefs and public declarations. Per Stefan's comment these are unneeded and actually the tests still pass. --- 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: