replace 'util.re()' with 'text.re()'
remove unnecessary 'util' imports
This commit is contained in:
@@ -128,7 +128,7 @@ class ZerochanExtractor(BooruExtractor):
|
||||
return data
|
||||
|
||||
def _parse_json(self, txt):
|
||||
txt = util.re(r"[\x00-\x1f\x7f]").sub("", txt)
|
||||
txt = text.re(r"[\x00-\x1f\x7f]").sub("", txt)
|
||||
main, _, tags = txt.partition('tags": [')
|
||||
|
||||
item = {}
|
||||
|
||||
Reference in New Issue
Block a user