Warn instead of raise, fix imports, and use skipif instead of skip

This commit is contained in:
Vinayak Mehta
2021-07-11 19:15:36 +05:30
parent f160c1d44d
commit 02f53e7654
7 changed files with 33 additions and 10 deletions
+3 -2
View File
@@ -142,9 +142,10 @@ class Lattice(BaseParser):
if isinstance(backend, str):
if backend in BACKENDS.keys():
if backend == "ghostscript":
raise DeprecationWarning(
warnings.warn(
"'ghostscript' will be replaced by 'poppler' as the default image conversion"
" backend in v0.12.0. You can try out 'poppler' with backend='poppler'."
" backend in v0.12.0. You can try out 'poppler' with backend='poppler'.",
DeprecationWarning
)
return BACKENDS[backend]()