8000 add comment to protect against future 'cleanup' of `if ret is False` · matplotlib/matplotlib@2ac78c7 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 2ac78c7

Browse files
committed
add comment to protect against future 'cleanup' of if ret is False
1 parent c5304ee commit 2ac78c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,8 @@ def _on_timer(self):
11231123
'''
11241124
for func, args, kwargs in self.callbacks:
11251125
ret = func(*args, **kwargs)
1126+
# docstring above explains why we use `if ret is False` here,
1127+
# instead of `if not ret`.
11261128
if ret is False:
11271129
self.callbacks.remove((func, args, kwargs))
11281130

0 commit comments

Comments
 (0)
0