Skip to content

Commit

Permalink
ENH: cleanup unnecessary try block in __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Sep 15, 2022
1 parent 8e83554 commit fed3312
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions unyt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@

from ._version import get_versions

try:
from unyt.mpl_interface import matplotlib_support # NOQA: F401
except ImportError:
pass
else:
matplotlib_support = matplotlib_support()


# function to only import quantities into this namespace
# we go through the trouble of doing this instead of "import *"
Expand Down Expand Up @@ -107,3 +100,9 @@ def test(): # pragma: no cover
import pytest

pytest.main([os.path.dirname(os.path.abspath(__file__))])


# isort: off
from unyt.mpl_interface import matplotlib_support

matplotlib_support = matplotlib_support()

0 comments on commit fed3312

Please sign in to comment.