From 65f9b8774f9d42d64296e8462f5ef242585ed928 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Tue, 30 Nov 2021 00:07:15 +0100 Subject: [PATCH] Backport PR #21791: Refix check for manager presence in deprecated blocking_input. --- 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.