@@ -32,8 +32,8 @@ def _cleanup_cm():
3232 plt .close ("all" )
3333
3434
35- @_api .deprecated ("3.6" , alternative = "Vendor the existing code, "
36- "including the private function _cleanup_cm. " )
35+ @_api .deprecated ("3.6" , alternative = "a vendored copy of the existing code, "
36+ "including the private function _cleanup_cm" )
3737class CleanupTestCase (unittest .TestCase ):
3838 """A wrapper for unittest.TestCase that includes cleanup operations."""
3939 @classmethod
@@ -45,8 +45,8 @@ def tearDownClass(cls):
4545 cls ._cm .__exit__ (None , None , None )
4646
4747
48- @_api .deprecated ("3.6" , alternative = "Vendor the existing code, "
49- "including the private function _cleanup_cm. " )
48+ @_api .deprecated ("3.6" , alternative = "a vendored copy of the existing code, "
49+ "including the private function _cleanup_cm" )
5050def cleanup (style = None ):
5151 """
5252 A decorator to ensure that any global state is reset before
@@ -88,8 +88,8 @@ def wrapped_callable(*args, **kwargs):
8888 return make_cleanup
8989
9090
91- @_api .deprecated ("3.6" , alternative = "Vendor the existing code "
92- "of _check_freetype_version. " )
91+ @_api .deprecated ("3.6" , alternative = "a vendored copy of the existing code "
92+ "of _check_freetype_version" )
9393def check_freetype_version (ver ):
9494 return _check_freetype_version (ver )
9595
0 commit comments