From 0b109e4eb327324a3dbe96bbd8d32f3c6ad488a1 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Mon, 29 Nov 2021 07:03:03 +0100 Subject: [PATCH] Refix check for manager presence in deprecated blocking_input. The whole module has been deprecated as the library is now using _blocking_input, which does not have the same problem, but it still seems better to fix this typo asap. --- lib/matplotlib/blocking_input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/blocking_input.py b/lib/matplotlib/blocking_input.py index f59a54ff7343..bf986ca5237b 100644 --- a/lib/matplotlib/blocking_input.py +++ b/lib/matplotlib/blocking_input.py @@ -83,7 +83,7 @@ def __call__(self, n=1, timeout=30): self.n = n self.events = [] - if self.figure.canvas.manager: + if self.fig.canvas.manager: # Ensure that the figure is shown, if we are managing it. self.fig.show() # Connect the events to the on_event function call.