Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7993d0f

Browse files
committed
Fix in last commit: Move to the 'else' block of the try
1 parent aa5da2e commit 7993d0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/cbook.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ def disconnect(self, cid):
243243
except KeyError:
244244
continue
245245
else:
246+
for key, value in self._func_cid_map.items():
247+
if value == cid:
248+
del self._func_cid_map[key]
246249
return
247250

248251
def process(self, s, *args, **kwargs):

0 commit comments

Comments
 (0)