diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py index e98e8ea07502..4903739e8936 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -154,6 +154,7 @@ import sys import tempfile + from packaging.version import parse as parse_version # cbook must import matplotlib only within function @@ -309,7 +310,6 @@ def set_loglevel(level): The first time this function is called, an additional handler is attached to Matplotlib's root handler; this handler is reused every time and this function simply manipulates the logger and handler's level. - """ _log.setLevel(level.upper()) _ensure_handler().setLevel(level.upper())