# HG changeset patch # User Gregory Szorc # Date 1549302070 28800 # Node ID fbb43514f34241ae5f7277d2218462144cc13e89 # Parent 7d1798ec92a317b0ea0c88c81b1fcb365c86feaa 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 diff -r 7d1798ec92a3 -r fbb43514f342 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