forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make module deprecation messages consistent
The default message already says more than enough over the manually created one.
- Loading branch information
1 parent
c3a5246
commit f7632d8
Showing
5 changed files
with
5 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |