[all] small fixed picked up by pytest

- unicode stuff
- make all regexps regex strings
This commit is contained in:
tobi-wan-kenobi 2020-06-02 20:13:39 +02:00
parent 9cadcee844
commit 5e40dfb28a
9 changed files with 12 additions and 10 deletions

View file

@ -66,10 +66,10 @@ class Module(core.module.Module):
# 6. speed
# 7. time remaining
extract_nospeed = re.compile(
"\[ *(\d*)\] ([a-zA-Z]*) (.*)\n\t(\d*\.*\d*)% \((.*)\)\n.*"
r"\[ *(\d*)\] ([a-zA-Z]*) (.*)\n\t(\d*\.*\d*)% \((.*)\)\n.*"
)
extract_wtspeed = re.compile(
"\[ *(\d*)\] ([a-zA-Z]*) (.*)\n\t(\d*\.*\d*)% \((.*)\) (\d*\.\d .*) remaining (\d*:\d*:\d*)\n.*"
r"\[ *(\d*)\] ([a-zA-Z]*) (.*)\n\t(\d*\.*\d*)% \((.*)\) (\d*\.\d .*) remaining (\d*:\d*:\d*)\n.*"
)
try: