From 32d85e8cad99aca9d075390a9953cc485e30943b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 18 Feb 2024 16:31:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- easyverein/modules/invoice.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/easyverein/modules/invoice.py b/easyverein/modules/invoice.py index 853475a..338f5c3 100644 --- a/easyverein/modules/invoice.py +++ b/easyverein/modules/invoice.py @@ -1,8 +1,8 @@ import logging -from pathlib import Path import re -from typing import List import urllib +from pathlib import Path +from typing import List from requests.structures import CaseInsensitiveDict @@ -172,9 +172,9 @@ def get_attachment( ) # Fix for unencoded characters - should probably be fixed in easyverein API - m = re.fullmatch(r'^(.*\&path=)(.*)(&storedInS3=True)$', path.unicode_string()) + m = re.fullmatch(r"^(.*\&path=)(.*)(&storedInS3=True)$", path.unicode_string()) url_components = list(m.groups()) - if '%' not in url_components[1]: + if "%" not in url_components[1]: url_components[1] = urllib.parse.quote(url_components[1]) - return self.c.fetch_file(''.join(url_components)) + return self.c.fetch_file("".join(url_components))