revetbenchmarks: use raw string for regular expression with escapes
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 04 Feb 2019 09:41:10 -0800
changeset 41559 fbb43514f342
parent 41558 7d1798ec92a3
child 41560 20e62312e016
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
contrib/revsetbenchmarks.py
--- 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