Converted all possible usages of re.* that weren't compiling the regex separately and re-using it. Separated out the compiled patterns as global variables. Repetitive patterns could be made DRY-er. Would be nicer to have all regexes in a single module so that we could re-use better, keep track of outdated, and keep checks for possible reDos' etc |
||
|---|---|---|
| .. | ||
| doctype | ||
| page | ||
| __init__.py | ||
| email_body.py | ||
| inbox.py | ||
| queue.py | ||
| receive.py | ||
| smtp.py | ||
| test_email_body.py | ||
| test_smtp.py | ||
| utils.py | ||