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 aec7bb4

Browse filesBrowse files
committed
Remove testing and doc API deprecated in 3.3.
1 parent bb978a4 commit aec7bb4
Copy full SHA for aec7bb4

File tree

Expand file treeCollapse file tree

4 files changed

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

4 files changed

+15
-43
lines changed

‎doc/api/next_api_changes/removals/20465-ES.rst

Copy file name to clipboardExpand all lines: doc/api/next_api_changes/removals/20465-ES.rst
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,16 @@ Path helpers
5959

6060
``.BboxBase.inverse_transformed`` has been removed (call `.BboxBase.transformed`
6161
on the `~.Transform.inverted()` transform instead).
62+
63+
``matplotlib.test(recursionlimit=...)``
64+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
65+
The *recursionlimit* parameter of `matplotlib.test` has been removed.
66+
67+
``testing.compare.make_external_conversion_command``
68+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69+
... has been removed.
70+
71+
``docstring.Substitution.from_params``
72+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73+
This method has been removed. If needed, directly assign to the ``params``
74+
attribute of the Substitution object.

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,8 +1174,7 @@ def _init_tests():
11741174
"" if ft2font.__freetype_build_type__ == 'local' else "not "))
11751175

11761176

1177-
@_api.delete_parameter("3.3", "recursionlimit")
1178-
def test(verbosity=None, coverage=False, *, recursionlimit=0, **kwargs):
1177+
def test(verbosity=None, coverage=False, **kwargs):
11791178
"""Run the matplotlib test suite."""
11801179

11811180
try:
@@ -1192,8 +1191,6 @@ def test(verbosity=None, coverage=False, *, recursionlimit=0, **kwargs):
11921191
old_recursionlimit = sys.getrecursionlimit()
11931192
try:
11941193
use('agg')
1195-
if recursionlimit:
1196-
sys.setrecursionlimit(recursionlimit)
11971194

11981195
args = kwargs.pop('argv', [])
11991196
provide_default_modules = True
@@ -1222,8 +1219,6 @@ def test(verbosity=None, coverage=False, *, recursionlimit=0, **kwargs):
12221219
finally:
12231220
if old_backend.lower() != 'agg':
12241221
use(old_backend)
1225-
if recursionlimit:
1226-
sys.setrecursionlimit(old_recursionlimit)
12271222

12281223
return retcode
12291224

‎lib/matplotlib/docstring.py

Copy file name to clipboardExpand all lines: lib/matplotlib/docstring.py
-17Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import inspect
22

3-
from matplotlib import _api
4-
53

64
class Substitution:
75
"""
@@ -46,21 +44,6 @@ def update(self, *args, **kwargs):
4644
"""
4745
self.params.update(*args, **kwargs)
4846

49-
@classmethod
50-
@_api.deprecated("3.3", alternative="assign to the params attribute")
51-
def from_params(cls, params):
52-
"""
53-
In the case where the params is a mutable sequence (list or
54-
dictionary) and it may change before this class is called, one may
55-
explicitly use a reference to the params rather than using *args or
56-
**kwargs which will copy the values and not reference them.
57-
58-
:meta private:
59-
"""
60-
result = cls()
61-
result.params = params
62-
return result
63-
6447

6548
def _recursive_subclasses(cls):
6649
yield cls

‎lib/matplotlib/testing/compare.py

Copy file name to clipboardExpand all lines: lib/matplotlib/testing/compare.py
+1-20Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from PIL import Image
2020

2121
import matplotlib as mpl
22-
from matplotlib import _api, cbook
22+
from matplotlib import cbook
2323
from matplotlib.testing.exceptions import ImageComparisonFailure
2424

2525
_log = logging.getLogger(__name__)
@@ -64,25 +64,6 @@ def get_file_hash(path, block_size=2 ** 20):
6464
return md5.hexdigest()
6565

6666

67-
@_api.deprecated("3.3")
68-
def make_external_conversion_command(cmd):
69-
def convert(old, new):
70-
cmdline = cmd(old, new)
71-
pipe = subprocess.Popen(cmdline, universal_newlines=True,
72-
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
73-
stdout, stderr = pipe.communicate()
74-
errcode = pipe.wait()
75-
if not os.path.exists(new) or errcode:
76-
msg = "Conversion command failed:\n%s\n" % ' '.join(cmdline)
77-
if stdout:
78-
msg += "Standard output:\n%s\n" % stdout
79-
if stderr:
80-
msg += "Standard error:\n%s\n" % stderr
81-
raise IOError(msg)
82-
83-
return convert
84-
85-
8667
# Modified from https://bugs.python.org/issue25567.
8768
_find_unsafe_bytes = re.compile(br'[^a-zA-Z0-9_@%+=:,./-]').search
8869

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.