D5830: revetbenchmarks: use raw string for regular expression with escapes
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Mon Feb 4 18:37:28 EST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfbb43514f342: revetbenchmarks: use raw string for regular expression with escapes (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5830?vs=13757&id=13790
REVISION DETAIL
https://phab.mercurial-scm.org/D5830
AFFECTED FILES
contrib/revsetbenchmarks.py
CHANGE DETAILS
diff --git a/contrib/revsetbenchmarks.py b/contrib/revsetbenchmarks.py
--- a/contrib/revsetbenchmarks.py
+++ b/contrib/revsetbenchmarks.py
@@ -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
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list