Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8a231e

Browse files
committed
Remove checkdep_usetex
1 parent 99acf47 commit e8a231e

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

lib/matplotlib/__init__.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -462,26 +462,6 @@ def impl(args, regex, min_ver=None, ignore_exit_code=False):
462462
raise ValueError("Unknown executable: {!r}".format(name))
463463

464464

465-
@_api.deprecated("3.6", alternative="a vendored copy of this function")
466-
def checkdep_usetex(s):
467-
if not s:
468-
return False
469-
if not shutil.which("tex"):
470-
_log.warning("usetex mode requires TeX.")
471-
return False
472-
try:
473-
_get_executable_info("dvipng")
474-
except ExecutableNotFoundError:
475-
_log.warning("usetex mode requires dvipng.")
476-
return False
477-
try:
478-
_get_executable_info("gs")
479-
except ExecutableNotFoundError:
480-
_log.warning("usetex mode requires ghostscript.")
481-
return False
482-
return True
483-
484-
485465
def _get_xdg_config_dir():
486466
"""
487467
Return the XDG configuration directory, according to the XDG base

0 commit comments

Comments
 (0)