'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

@@ -31,7 +31,7 @@ class TwitterExtractor(Extractor):
def __init__(self, match):
Extractor.__init__(self, match)
self.user = match.group(1)
self.user = match[1]
def _init(self):
self.unavailable = self.config("unavailable", False)
@@ -896,7 +896,7 @@ class TwitterTweetExtractor(TwitterExtractor):
def __init__(self, match):
TwitterExtractor.__init__(self, match)
self.tweet_id = match.group(2)
self.tweet_id = match[2]
def tweets(self):
conversations = self.config("conversations")