Skip to content

Commit 735038f

Browse files
committed
eliminate conversion to list and assignment of cid
1 parent d35fa2e commit 735038f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def process(self, s, *args, **kwargs):
286286
"""
287287
if self._signals is not None:
288288
_api.check_in_list(self._signals, signal=s)
289-
for cid, ref in list(self.callbacks.get(s, {}).items()):
289+
for ref in self.callbacks.get(s, {}).values():
290290
func = ref()
291291
if func is not None:
292292
try:

0 commit comments

Comments
 (0)