replace 'util.re()' with 'text.re()'

remove unnecessary 'util' imports
This commit is contained in:
Mike Fährmann
2025-10-20 17:44:58 +02:00
parent c8fc790028
commit 9bf76c1352
42 changed files with 91 additions and 91 deletions

View File

@@ -70,7 +70,7 @@ class RealbooruExtractor(booru.BooruExtractor):
page = post["_html"]
tag_container = text.extr(page, 'id="tagLink"', '</div>')
tags = collections.defaultdict(list)
pattern = util.re(r'<a class="(?:tag-type-)?([^"]+).*?;tags=([^"&]+)')
pattern = text.re(r'<a class="(?:tag-type-)?([^"]+).*?;tags=([^"&]+)')
for tag_type, tag_name in pattern.findall(tag_container):
tags[tag_type].append(text.unescape(text.unquote(tag_name)))
for key, value in tags.items():