Skip to content

Commit ccf96cd

Browse files
authored
Merge pull request matplotlib#23133 from QuLogic/module-deprecations
Make module deprecation messages consistent
2 parents b05b8f0 + ad9fb0f commit ccf96cd

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed

lib/matplotlib/afm.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
from matplotlib._afm import * # noqa: F401, F403
22
from matplotlib import _api
3-
_api.warn_deprecated(
4-
"3.6", message="The module %(name)s is deprecated since %(since)s.",
5-
name=f"{__name__}")
3+
_api.warn_deprecated("3.6", name=__name__, obj_type="module")
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
from matplotlib._fontconfig_pattern import * # noqa: F401, F403
22
from matplotlib import _api
3-
_api.warn_deprecated(
4-
"3.6", message="The module %(name)s is deprecated since %(since)s.",
5-
name=f"{__name__}")
3+
_api.warn_deprecated("3.6", name=__name__, obj_type="module")

lib/matplotlib/tight_bbox.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
from matplotlib._tight_bbox import * # noqa: F401, F403
22
from matplotlib import _api
3-
_api.warn_deprecated(
4-
"3.6", message="The module %(name)s is deprecated since %(since)s.",
5-
name=f"{__name__}")
3+
_api.warn_deprecated("3.6", name=__name__, obj_type="module")

lib/matplotlib/tight_layout.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
from matplotlib._tight_layout import * # noqa: F401, F403
22
from matplotlib import _api
3-
_api.warn_deprecated(
4-
"3.6", message="The module %(name)s is deprecated since %(since)s.",
5-
name=f"{__name__}")
3+
_api.warn_deprecated("3.6", name=__name__, obj_type="module")

lib/matplotlib/type1font.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
from matplotlib._type1font import * # noqa: F401, F403
22
from matplotlib import _api
3-
_api.warn_deprecated(
4-
"3.6", message="The module %(name)s is deprecated since %(since)s.",
5-
name=f"{__name__}")
3+
_api.warn_deprecated("3.6", name=__name__, obj_type="module")

0 commit comments

Comments
 (0)