8000 Remove two more deprecated methods · matplotlib/matplotlib@89411ff · GitHub
[go: up one dir, main page]

Skip to content

Commit 89411ff

Browse files
committed
Remove two more deprecated methods
1 parent d879ee8 commit 89411ff

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -328,28 +328,6 @@ def convert(filename, cache):
328328
'xmllint', '--valid', '--nowarning', '--noout', filename]
329329

330330

331-
@cbook.deprecated("2.1")
332-
def verify(filename):
333-
"""Verify the file through some sort of verification tool."""
334-
if not os.path.exists(filename):
335-
raise IOError("'%s' does not exist" % filename)
336-
base, extension = filename.rsplit('.', 1)
337-
verifier = verifiers.get(extension, None)
338-
if verifier is not None:
339-
cmd = verifier(filename)
340-
pipe = subprocess.Popen(cmd, universal_newlines=True,
341-
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
342-
stdout, stderr = pipe.communicate()
343-
errcode = pipe.wait()
344-
if errcode != 0:
345-
msg = "File verification command failed:\n%s\n" % ' '.join(cmd)
346-
if stdout:
347-
msg += "Standard output:\n%s\n" % stdout
348-
if stderr:
349-
msg += "Standard error:\n%s\n" % stderr
350-
raise IOError(msg)
351-
352-
353331
def crop_to_same(actual_path, actual_image, expected_path, expected_image):
354332
# clip the images to the same size -- this is useful only when
355333
# comparing eps to pdf

lib/matplotlib/testing/decorators.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,6 @@ def setup(self):
321321
def teardown(self):
322322
self.teardown_class()
323323

324-
@staticmethod
325-
@cbook.deprecated('2.1',
326-
alternative='remove_ticks_and_titles')
327-
def remove_text(figure):
328-
remove_ticks_and_titles(figure)
329-
330324
def nose_runner(self):
331325
func = self.compare
332326
func = _checked_on_freetype_version(self.freetype_version)(func)

0 commit comments

Comments
 (0)
0