replace old %-formatted and .format(…) strings with f-strings (#7671)

mostly using flynt
https://github.com/ikamensh/flynt
This commit is contained in:
Mike Fährmann
2025-06-28 19:36:16 +02:00
parent f77e98b57d
commit 9dbe33b6de
167 changed files with 756 additions and 891 deletions

View File

@@ -26,7 +26,7 @@ class EromeExtractor(Extractor):
def items(self):
self.__cookies = True
for album_id in self.albums():
url = "{}/a/{}".format(self.root, album_id)
url = f"{self.root}/a/{album_id}"
try:
page = self.request(url).text
@@ -116,7 +116,7 @@ class EromeUserExtractor(EromeExtractor):
example = "https://www.erome.com/USER"
def albums(self):
url = "{}/{}".format(self.root, self.groups[0])
url = f"{self.root}/{self.groups[0]}"
return self._pagination(url, {})