revetbenchmarks: use raw string for regular expression with escapes
This avoids a SyntaxWarning on Python 3.8.
Differential Revision: https://phab.mercurial-scm.org/D5830
--- a/contrib/revsetbenchmarks.py Mon Feb 04 09:38:33 2019 -0800
+++ b/contrib/revsetbenchmarks.py Mon Feb 04 09:41:10 2019 -0800
@@ -71,8 +71,8 @@
print(exc.output, file=sys.stderr)
return None
-outputre = re.compile(r'! wall (\d+.\d+) comb (\d+.\d+) user (\d+.\d+) '
- 'sys (\d+.\d+) \(best of (\d+)\)')
+outputre = re.compile(br'! wall (\d+.\d+) comb (\d+.\d+) user (\d+.\d+) '
+ br'sys (\d+.\d+) \(best of (\d+)\)')
def parseoutput(output):
"""parse a textual output into a dict