diff --git a/docs/pdfsecurity.rst b/docs/pdfsecurity.rst index 9288e311..a11c84c3 100644 --- a/docs/pdfsecurity.rst +++ b/docs/pdfsecurity.rst @@ -41,8 +41,8 @@ layer. First, it runs all PDFs through `pikepdf `__, a library based on `qpdf `__, a program that repairs PDFs with syntax errors. This is done because, in the author's experience, a -significant number of PDFs in the wild especially those created by -scanners are not well-formed files. qpdf makes it more likely that +significant number of PDFs in the wild, especially those created by +scanners, are not well-formed files. qpdf makes it more likely that OCRmyPDF will succeed, but offers no security guarantees. qpdf is also used to split the PDF into single page PDFs. diff --git a/misc/watcher.py b/misc/watcher.py index 68437878..991ee9ac 100644 --- a/misc/watcher.py +++ b/misc/watcher.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright (C) 2019 Ian Alexander: https://github.com/ianalexander # Copyright (C) 2020 James R Barlow: https://github.com/jbarlow83 # diff --git a/misc/webservice.py b/misc/webservice.py index ed2a0374..bfc4a69e 100644 --- a/misc/webservice.py +++ b/misc/webservice.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # webservice.py wrapper for OCRmyPDF # Copyright (C) 2019 James R. Barlow: github.com/jbarlow83 # @@ -36,7 +37,6 @@ from flask import ( redirect, request, send_from_directory, - url_for, ) from werkzeug.utils import secure_filename diff --git a/setup.cfg b/setup.cfg index 44435e3f..277b577c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -84,9 +84,9 @@ docs = extended_test = PyMuPDF == 1.13.4 watcher = - watchdog >= 1.0.2, < 2 + watchdog >= 1.0.2, < 3 webservice = - Flask >= 1, < 2 + Flask >= 1, < 3 [options.entry_points] console_scripts =