'match.group(N)' -> 'match[N]' (#7671)

2.5x faster
This commit is contained in:
Mike Fährmann
2025-06-18 12:59:37 +02:00
parent 475506cc39
commit 41191bb60a
135 changed files with 363 additions and 363 deletions

View File

@@ -46,7 +46,7 @@ class DesktopographyExhibitionExtractor(DesktopographyExtractor):
def __init__(self, match):
DesktopographyExtractor.__init__(self, match)
self.year = match.group(1)
self.year = match[1]
def items(self):
url = "{}/exhibition-{}/".format(self.root, self.year)
@@ -75,7 +75,7 @@ class DesktopographyEntryExtractor(DesktopographyExtractor):
def __init__(self, match):
DesktopographyExtractor.__init__(self, match)
self.entry = match.group(1)
self.entry = match[1]
def items(self):
url = "{}/portfolios/{}".format(self.root, self.entry)