Skip to content

Commit

Permalink
Make module deprecation messages consistent
Browse files Browse the repository at this point in the history
The default message already says more than enough over the manually
created one.
  • Loading branch information
QuLogic authored and andrew-fennell committed Jun 14, 2022
1 parent c3a5246 commit f7632d8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
4 changes: 1 addition & 3 deletions lib/matplotlib/afm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from matplotlib._afm import * # noqa: F401, F403
from matplotlib import _api
_api.warn_deprecated(
"3.6", message="The module %(name)s is deprecated since %(since)s.",
name=f"{__name__}")
_api.warn_deprecated("3.6", name=__name__, obj_type="module")
4 changes: 1 addition & 3 deletions lib/matplotlib/fontconfig_pattern.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from matplotlib._fontconfig_pattern import * # noqa: F401, F403
from matplotlib import _api
_api.warn_deprecated(
"3.6", message="The module %(name)s is deprecated since %(since)s.",
name=f"{__name__}")
_api.warn_deprecated("3.6", name=__name__, obj_type="module")
4 changes: 1 addition & 3 deletions lib/matplotlib/tight_bbox.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from matplotlib._tight_bbox import * # noqa: F401, F403
from matplotlib import _api
_api.warn_deprecated(
"3.6", message="The module %(name)s is deprecated since %(since)s.",
name=f"{__name__}")
_api.warn_deprecated("3.6", name=__name__, obj_type="module")
4 changes: 1 addition & 3 deletions lib/matplotlib/tight_layout.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from matplotlib._tight_layout import * # noqa: F401, F403
from matplotlib import _api
_api.warn_deprecated(
"3.6", message="The module %(name)s is deprecated since %(since)s.",
name=f"{__name__}")
_api.warn_deprecated("3.6", name=__name__, obj_type="module")
4 changes: 1 addition & 3 deletions lib/matplotlib/type1font.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from matplotlib._type1font import * # noqa: F401, F403
from matplotlib import _api
_api.warn_deprecated(
"3.6", message="The module %(name)s is deprecated since %(since)s.",
name=f"{__name__}")
_api.warn_deprecated("3.6", name=__name__, obj_type="module")

0 comments on commit f7632d8

Please sign in to comment.