From 6da237dd9e611e55640bb9e7eae626ab394e5844 Mon Sep 17 00:00:00 2001 From: jonaswinkler <17569239+jonaswinkler@users.noreply.github.com> Date: Sun, 21 Feb 2021 00:21:43 +0100 Subject: [PATCH] pycodestyle --- src/documents/views.py | 5 ++++- src/paperless_tesseract/parsers.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/documents/views.py b/src/documents/views.py index d886324ae..f5ddd88ee 100755 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -639,7 +639,10 @@ class BulkDownloadView(APIView): content = serializer.validated_data.get('content') os.makedirs(settings.SCRATCH_DIR, exist_ok=True) - temp = tempfile.NamedTemporaryFile(dir=settings.SCRATCH_DIR, suffix="-compressed-archive", delete=False) + temp = tempfile.NamedTemporaryFile( + dir=settings.SCRATCH_DIR, + suffix="-compressed-archive", + delete=False) if content == 'both': strategy_class = OriginalAndArchiveStrategy diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py index dac364447..883402414 100644 --- a/src/paperless_tesseract/parsers.py +++ b/src/paperless_tesseract/parsers.py @@ -300,4 +300,3 @@ def strip_excess_whitespace(text): # TODO: this needs a rework return no_trailing_whitespace.strip() -