From b699b87311c6baa1568b79f40349ede50d5e5d67 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Fri, 2 Oct 2020 00:35:14 +0200 Subject: [PATCH] Remove outdate comment about canvases with no manager attribute. They don't occur anymore since 3ccc17b. --- lib/matplotlib/backend_bases.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index 8b0bc695d213..a239660e082a 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -2178,9 +2178,6 @@ def print_figure( dpi = getattr(self.figure, '_original_dpi', self.figure.dpi) # Remove the figure manager, if any, to avoid resizing the GUI widget. - # Some code (e.g. Figure.show) differentiates between having *no* - # manager and a *None* manager, which should be fixed at some point, - # but this should be fine. with cbook._setattr_cm(self, manager=None), \ cbook._setattr_cm(self.figure, dpi=dpi), \ cbook._setattr_cm(canvas, _is_saving=True):