Switch to python 3

- #259

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2019-12-28 19:01:26 +01:00
parent 3f3c4c3108
commit 5e385b84a1

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function
import sys import sys
import re import re
import argparse import argparse
@ -52,8 +51,8 @@ if __name__ == "__main__":
unexpected = defaultdict(int) unexpected = defaultdict(int)
passed = defaultdict(int) passed = defaultdict(int)
file = re.compile("^# (?:./)?(\S+\.t)(?:\.exe)?$") file = re.compile(r"^# (?:./)?(\S+\.t)(?:\.exe)?$")
timestamp = re.compile("^# (\d+(?:\.\d+)?) ==>.*$") timestamp = re.compile(r"^# (\d+(?:\.\d+)?) ==>.*$")
expected_fail = re.compile(r"^not ok.*?#\s*TODO", re.I) expected_fail = re.compile(r"^not ok.*?#\s*TODO", re.I)
unexpected_pass = re.compile(r"^ok .*?#\s*TODO", re.I) unexpected_pass = re.compile(r"^ok .*?#\s*TODO", re.I)