Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ccf96cd

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

File tree

Expand file treeCollapse file tree

5 files changed

+5
-15
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+5
-15
lines changed

‎lib/matplotlib/afm.py

Copy file name to clipboard
+1-3Lines 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

Copy file name to clipboard
+1-3Lines 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

Copy file name to clipboard
+1-3Lines 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

Copy file name to clipboard
+1-3Lines 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

Copy file name to clipboard
+1-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.