mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Switch to python 3
- #259 Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
3f3c4c3108
commit
5e385b84a1
1 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue