Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warning by using packaging.version instead of distutils #1319

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions yellowbrick/style/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@


# Check to see if matplotlib is at least sorta up to date
from distutils.version import LooseVersion
from packaging.version import Version

mpl_ge_150 = LooseVersion(mpl.__version__) >= "1.5.0"
mpl_ge_150 = Version(mpl.__version__) >= Version("1.5.0")


##########################################################################
Expand Down
4 changes: 2 additions & 2 deletions yellowbrick/style/rcmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
import matplotlib as mpl

# Check to see if we have a slightly modern version of mpl
from distutils.version import LooseVersion
from packaging.version import Version

mpl_ge_150 = LooseVersion(mpl.__version__) >= "1.5.0"
mpl_ge_150 = Version(mpl.__version__) >= Version("1.5.0")


from .. import _orig_rc_params
Expand Down