Patchwork D5830: revetbenchmarks: use raw string for regular expression with escapes

login
register
mail settings
Submitter phabricator
Date Feb. 4, 2019, 11:37 p.m.
Message ID <14b61439130740ed98cbd99a8cb043f1@localhost.localdomain>
Download mbox | patch
Permalink /patch/38409/
State Not Applicable
Headers show

Comments

phabricator - Feb. 4, 2019, 11:37 p.m.
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




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

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