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 8b769ba1..277b577c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -86,7 +86,7 @@ extended_test = watcher = watchdog >= 1.0.2, < 3 webservice = - Flask >= 1, < 2 + Flask >= 1, < 3 [options.entry_points] console_scripts =