mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Runs pyupgrade to Python 3.8+ and adds a hook for it
This commit is contained in:
@@ -98,7 +98,7 @@ class RasterisedDocumentParser(DocumentParser):
|
||||
|
||||
def extract_text(self, sidecar_file, pdf_file):
|
||||
if sidecar_file and os.path.isfile(sidecar_file):
|
||||
with open(sidecar_file, "r") as f:
|
||||
with open(sidecar_file) as f:
|
||||
text = f.read()
|
||||
|
||||
if "[OCR skipped on page" not in text:
|
||||
|
Reference in New Issue
Block a user