changeset 41559:fbb43514f342

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
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 04 Feb 2019 09:41:10 -0800
parents 7d1798ec92a3
children 20e62312e016
files contrib/revsetbenchmarks.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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