From 0fe32e75628a5728cb223c14b3b259ada92d087c Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Mon, 28 Sep 2020 22:19:48 +0200 Subject: [PATCH] Remove unused f-string Since we still want to support Python 3.5 for a bit, we should avoid f-strings until we finally drop support for that. --- dosagelib/scraper.py | 2 +- setup.cfg | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dosagelib/scraper.py b/dosagelib/scraper.py index 23f1d2b5c..b0ab299f6 100644 --- a/dosagelib/scraper.py +++ b/dosagelib/scraper.py @@ -34,7 +34,7 @@ ARCHIVE_ORG_URL = re.compile(r'https?://web\.archive\.org/web/[^/]*/') class GeoblockedException(IOError): def __init__(self): - super().__init__(f'It seems your current location is geo-blocked.') + super().__init__('It seems your current location is geo-blocked.') class Scraper(object): diff --git a/setup.cfg b/setup.cfg index 458dcff13..130137251 100644 --- a/setup.cfg +++ b/setup.cfg @@ -60,6 +60,7 @@ dev = flake8-2020;python_version>'3.5' flake8-coding flake8-future-import + flake8-no-fstring flake8-pytest flake8-pytest-style;python_version>'3.5'