8000 Make module deprecation messages consistent · matplotlib/matplotlib@ad9fb0f · GitHub
[go: up one dir, main page]

Skip to content

Commit ad9fb0f

Browse files
committed
Make module deprecation messages consistent
The default message already says more than enough over the manually created one.
1 parent e49d6b6 commit ad9fb0f

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")

lib/matplotlib/fontconfig_pattern.py

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.&quo 794A t;,
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)
0