Skip to content

avoid deprecation warning for LooseVersion#28

Closed
tgpfeiffer wants to merge 1 commit into
uehara1414:masterfrom
tgpfeiffer:loose-version
Closed

avoid deprecation warning for LooseVersion#28
tgpfeiffer wants to merge 1 commit into
uehara1414:masterfrom
tgpfeiffer:loose-version

Conversation

@tgpfeiffer

Copy link
Copy Markdown

The current version emits a warning

$ python -Wdefault demo.py 
.../japanize_matplotlib.py:16: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  is_support_createFontList = LooseVersion(matplotlib.__version__) < '3.2'
.../site-packages/setuptools/_distutils/version.py:345: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  other = LooseVersion(other)

so I have updated the code to use packaging.version.Version instead.

@tgpfeiffer

Copy link
Copy Markdown
Author

duplicate of #27

@tgpfeiffer tgpfeiffer closed this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant