Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 974245e

Browse files
committed
Remove Ghostscript deprecation warning
1 parent f8ef588 commit 974245e

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

camelot/parsers/lattice.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,6 @@ def implements_convert():
139139
f"Unknown backend '{backend}' specified. Please use either 'poppler' or 'ghostscript'."
140140
)
141141

142-
if backend == "ghostscript":
143-
warnings.warn(
144-
"'ghostscript' will be replaced by 'poppler' as the default image conversion"
145-
" backend in v0.12.0. You can try out 'poppler' with backend='poppler'.",
146-
DeprecationWarning,
147-
)
148-
149142
return BACKENDS[backend]()
150143
else:
151144
if not implements_convert():

tests/test_errors.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -131,19 +131,6 @@ class ConversionBackend:
131131
camelot.read_pdf(foo_pdf, backend=ConversionBackend())
132132

133133

134-
def test_lattice_ghostscript_deprecation_warning(foo_pdf):
135-
ghostscript_deprecation_warning = (
136-
"'ghostscript' will be replaced by 'poppler' as the default image conversion"
137-
" backend in v0.12.0. You can try out 'poppler' with backend='poppler'."
138-
)
139-
140-
with warnings.catch_warnings():
141-
warnings.simplefilter("error")
142-
with pytest.raises(DeprecationWarning) as e:
143-
camelot.read_pdf(foo_pdf)
144-
assert str(e.value) == ghostscript_deprecation_warning
145-
146-
147134
def test_invalid_url():
148135
url = "fttp://google.com/pdf"
149136
message = "File format not supported"

0 commit comments

Comments
 (0)