8000 Merge pull request #8450 from anntzer/dont-bother-disconnecting-on-ti… · matplotlib/matplotlib@b160593 · GitHub
[go: up one dir, main page]

Skip to content

Commit b160593

Browse files
committed
Merge pull request #8450 from anntzer/dont-bother-disconnecting-on-timerqt-__del__
MNT: Don't bother disconnecting signals in TimerQt.__del__.
1 parent 6e087ea commit b160593

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/matplotlib/backends/backend_qt5.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -202,16 +202,6 @@ def __init__(self, *args, **kwargs):
202202
self._timer.timeout.connect(self._on_timer)
203203
self._timer_set_interval()
204204

205-
def __del__(self):
206-
# Probably not necessary in practice, but is good behavior to
207-
# disconnect
208-
try:
209-
TimerBase.__del__(self)
210-
self._timer.timeout.disconnect(self._on_timer)
211-
except RuntimeError:
212-
# Timer C++ object already deleted
213-
pass
214-
215205
def _timer_set_single_shot(self):
216206
self._timer.setSingleShot(self._single)
217207

0 commit comments

Comments
 (0)
0