26 lines
789 B
Diff
26 lines
789 B
Diff
|
From 9dd4e88323909bc33ff6f574b03351a0307ca0a4 Mon Sep 17 00:00:00 2001
|
||
|
From: Frazer McLean <frazer@frazermclean.co.uk>
|
||
|
Date: Sat, 22 Jul 2023 14:21:42 +0100
|
||
|
Subject: [PATCH] group_reflected_property had a __del__ method instead of
|
||
|
__delete__
|
||
|
|
||
|
This was found because Cython 3 complained about __del__ having the
|
||
|
wrong signature.
|
||
|
---
|
||
|
logbook/_speedups.pyx | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/logbook/_speedups.pyx b/logbook/_speedups.pyx
|
||
|
index b85961f..a4bb55a 100644
|
||
|
--- a/logbook/_speedups.pyx
|
||
|
+++ b/logbook/_speedups.pyx
|
||
|
@@ -62,7 +62,7 @@ cdef class group_reflected_property:
|
||
|
def __set__(self, obj, value):
|
||
|
setattr(obj, self._name, value)
|
||
|
|
||
|
- def __del__(self, obj):
|
||
|
+ def __delete__(self, obj):
|
||
|
delattr(obj, self._name)
|
||
|
|
||
|
|