Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e7bedb commit 895bd46Copy full SHA for 895bd46
1 file changed
lib/matplotlib/cbook.py
@@ -340,17 +340,12 @@ def disconnect(self, cid):
340
341
No error is raised if such a callback does not exist.
342
"""
343
- self._pickled_cids.discard(cid)
344
for signal, proxy in self._func_cid_map:
345
if self._func_cid_map[signal, proxy] == cid:
346
break
347
else: # Not found
348
return
349
- assert self.callbacks[signal][cid] == proxy
350
- del self.callbacks[signal][cid]
351
- self._func_cid_map.pop((signal, proxy))
352
- if len(self.callbacks[signal]) == 0: # Clean up empty dicts
353
- del self.callbacks[signal]
+ self._remove_proxy(signal, proxy)
354
355
def disconnect_func(self, signal, func):
356
0 commit comments