fetch: use raw strings for regex patterns
This commit is contained in:
6
fetch.py
6
fetch.py
@@ -14,9 +14,9 @@ def set_config(cfg):
|
|||||||
|
|
||||||
# Pre-compiled regex patterns (compiled once at module load)
|
# Pre-compiled regex patterns (compiled once at module load)
|
||||||
cleanhtml_re = [
|
cleanhtml_re = [
|
||||||
re.compile('<.*?>'),
|
re.compile(r'<.*?>'),
|
||||||
re.compile('\s+'),
|
re.compile(r'\s+'),
|
||||||
re.compile('::+'),
|
re.compile(r'::+'),
|
||||||
]
|
]
|
||||||
|
|
||||||
# Proxy extraction pattern: IP:PORT followed by non-digit or end
|
# Proxy extraction pattern: IP:PORT followed by non-digit or end
|
||||||
|
|||||||
Reference in New Issue
Block a user