replace standard library 're' uses with 'util.re()'
This commit is contained in:
@@ -12,7 +12,6 @@ from .booru import BooruExtractor
|
||||
from ..cache import cache
|
||||
from .. import text, util, exception
|
||||
import collections
|
||||
import re
|
||||
|
||||
BASE_PATTERN = r"(?:https?://)?(?:www\.)?zerochan\.net"
|
||||
|
||||
@@ -127,7 +126,7 @@ class ZerochanExtractor(BooruExtractor):
|
||||
return data
|
||||
|
||||
def _parse_json(self, txt):
|
||||
txt = re.sub(r"[\x00-\x1f\x7f]", "", txt)
|
||||
txt = util.re(r"[\x00-\x1f\x7f]").sub("", txt)
|
||||
main, _, tags = txt.partition('tags": [')
|
||||
|
||||
item = {}
|
||||
|
||||
Reference in New Issue
Block a user