Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit1d5221b

Browse files
authored
Merge pull request#23711 from QuLogic/fix-vendoring-deprecations
Fix deprecation messages for vendoring unused things
2 parentsee2f68b +65bbec0 commit1d5221b

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

‎lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def impl(args, regex, min_ver=None, ignore_exit_code=False):
436436
raiseValueError("Unknown executable: {!r}".format(name))
437437

438438

439-
@_api.deprecated("3.6",alternative="Vendor the code")
439+
@_api.deprecated("3.6",alternative="a vendored copy of this function")
440440
defcheckdep_usetex(s):
441441
ifnots:
442442
returnFalse

‎lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
# * draw_quad_mesh
9393

9494

95-
@_api.deprecated("3.6",alternative="Vendor the code")
95+
@_api.deprecated("3.6",alternative="a vendored copy of _fill")
9696
deffill(strings,linelen=75):
9797
return_fill(strings,linelen=linelen)
9898

‎lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _nums_to_str(*args):
8787
return" ".join(f"{arg:1.3f}".rstrip("0").rstrip(".")forarginargs)
8888

8989

90-
@_api.deprecated("3.6",alternative="Vendor the code")
90+
@_api.deprecated("3.6",alternative="a vendored copy of this function")
9191
defquote_ps_string(s):
9292
"""
9393
Quote dangerous characters of S for use in a PostScript string constant.

‎lib/matplotlib/backends/backend_svg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
# --------------------------------------------------------------------
6767

6868

69-
@_api.deprecated("3.6",alternative="Vendor the code")
69+
@_api.deprecated("3.6",alternative="a vendored copy of _escape_cdata")
7070
defescape_cdata(s):
7171
return_escape_cdata(s)
7272

@@ -81,7 +81,7 @@ def _escape_cdata(s):
8181
_escape_xml_comment=re.compile(r'-(?=-)')
8282

8383

84-
@_api.deprecated("3.6",alternative="Vendor the code")
84+
@_api.deprecated("3.6",alternative="a vendored copy of _escape_comment")
8585
defescape_comment(s):
8686
return_escape_comment.sub(s)
8787

@@ -91,7 +91,7 @@ def _escape_comment(s):
9191
return_escape_xml_comment.sub('- ',s)
9292

9393

94-
@_api.deprecated("3.6",alternative="Vendor the code")
94+
@_api.deprecated("3.6",alternative="a vendored copy of _escape_attrib")
9595
defescape_attrib(s):
9696
return_escape_attrib(s)
9797

@@ -111,7 +111,7 @@ def _quote_escape_attrib(s):
111111
'"'+_escape_attrib(s)+'"')
112112

113113

114-
@_api.deprecated("3.6",alternative="Vendor the code")
114+
@_api.deprecated("3.6",alternative="a vendored copy of _short_float_fmt")
115115
defshort_float_fmt(x):
116116
return_short_float_fmt(x)
117117

‎lib/matplotlib/testing/decorators.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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")
3737
classCleanupTestCase(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")
5050
defcleanup(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
returnmake_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")
9393
defcheck_freetype_version(ver):
9494
return_check_freetype_version(ver)
9595

‎lib/mpl_toolkits/mplot3d/axis3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from .importart3d,proj3d
1414

1515

16-
@_api.deprecated("3.6",alternative="Vendor the code of _move_from_center")
16+
@_api.deprecated("3.6",alternative="a vendored copy of _move_from_center")
1717
defmove_from_center(coord,centers,deltas,axmask=(True,True,True)):
1818
"""
1919
For each coordinate where *axmask* is True, move *coord* away from
@@ -31,7 +31,7 @@ def _move_from_center(coord, centers, deltas, axmask=(True, True, True)):
3131
returncoord+axmask*np.copysign(1,coord-centers)*deltas
3232

3333

34-
@_api.deprecated("3.6",alternative="Vendor the code of _tick_update_position")
34+
@_api.deprecated("3.6",alternative="a vendored copy of _tick_update_position")
3535
deftick_update_position(tick,tickxs,tickys,labelpos):
3636
"""Update tick line and label position and style."""
3737
_tick_update_position(tick,tickxs,tickys,labelpos)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp