Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Fix deprecation messages for vendoring unused things#23711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
lib/matplotlib/__init__.py Outdated
@@ -436,7 +436,7 @@ def impl(args, regex, min_ver=None, ignore_exit_code=False): | |||
raise ValueError("Unknown executable: {!r}".format(name)) | |||
@_api.deprecated("3.6", alternative="Vendor the code") | |||
@_api.deprecated("3.6", alternative="a vendored copy this function") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
@_api.deprecated("3.6",alternative="a vendored copy this function") | |
@_api.deprecated("3.6",alternative="a vendored copyofthis function") |
lib/matplotlib/testing/decorators.py Outdated
@@ -88,7 +88,7 @@ def wrapped_callable(*args, **kwargs): | |||
return make_cleanup | |||
@_api.deprecated("3.6", alternative="Vendor the existing code " | |||
@_api.deprecated("3.6", alternative="a vendored copy of the existing code " | |||
"of _check_freetype_version.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
"of _check_freetype_version.") | |
"of _check_freetype_version") |
lib/matplotlib/testing/decorators.py Outdated
@@ -45,7 +45,7 @@ def tearDownClass(cls): | |||
cls._cm.__exit__(None, None, None) | |||
@_api.deprecated("3.6", alternative="Vendor the existing code, " | |||
@_api.deprecated("3.6", alternative="a vendored copy of the existing code, " | |||
"including the private function _cleanup_cm.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
"including the private function _cleanup_cm.") | |
"including the private function _cleanup_cm") |
lib/matplotlib/testing/decorators.py Outdated
@@ -32,7 +32,7 @@ def _cleanup_cm(): | |||
plt.close("all") | |||
@_api.deprecated("3.6", alternative="Vendor the existing code, " | |||
@_api.deprecated("3.6", alternative="a vendored copy of the existing code, " | |||
"including the private function _cleanup_cm.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
"including the private function _cleanup_cm.") | |
"including the private function _cleanup_cm") |
Formerly, the deprecation message would say "Use Vendor the codeinstead"; now they say "Use a vendored copy of the code instead", etc.
624f588
to65bbec0
Compare…711-on-v3.6.xBackport PR#23711 on branch v3.6.x (Fix deprecation messages for vendoring unused things)
PR Summary
Formerly, the deprecation message would say "Use Vendor the code instead"; now they say "Use a vendored copy of the code instead", etc.
This weird grammar can cause some confusion, cf#23244
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).