Fix syntax errors

This commit is contained in:
Vinayak Mehta
2020-05-24 18:19:48 +05:30
parent 52b2a595b4
commit a22fa63c4e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -441,10 +441,10 @@ class Stream(BaseParser):
if self.images:
warnings.warn(
f"{base_filename} is image-based, camelot only works on"
" text-based pages.")
" text-based pages."
)
else:
warnings.warn(f"No tables found on {base_filename}"))
warnings.warn(f"No tables found on {base_filename}")
return []
self._generate_table_bbox()
+1 -1
View File
@@ -85,7 +85,7 @@ def test_no_tables_found_warnings_suppressed():
tables = camelot.read_pdf(filename, suppress_stdout=True)
except Warning as e:
warning_text = str(e)
pytest.fail(f"Unexpected warning: {warning_text}"
pytest.fail(f"Unexpected warning: {warning_text}")
def test_no_password():