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

@@ -62,7 +62,7 @@ class PornpicsGalleryExtractor(PornpicsExtractor, GalleryExtractor):
example = "https://www.pornpics.com/galleries/TITLE-12345/"
def __init__(self, match):
url = "{}/galleries/{}/".format(self.root, match[1])
url = f"{self.root}/galleries/{match[1]}/"
GalleryExtractor.__init__(self, match, url)
items = GalleryExtractor.items
@@ -98,7 +98,7 @@ class PornpicsTagExtractor(PornpicsExtractor):
example = "https://www.pornpics.com/tags/TAGS/"
def galleries(self):
url = "{}/tags/{}/".format(self.root, self.groups[0])
url = f"{self.root}/tags/{self.groups[0]}/"
return self._pagination(url)