changeset 61921472cad4 in tryton-tools:default
details: https://hg.tryton.org/tryton-tools?cmd=changeset;node=61921472cad4
description:
Use br prefix for regexp
rb is not valid for Ptyhon2
diffstat:
hgrietveld.py | 2 +-
hgroundup.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r f36a937c571a -r 61921472cad4 hgrietveld.py
--- a/hgrietveld.py Sun Sep 27 12:42:14 2020 +0200
+++ b/hgrietveld.py Sun Sep 27 12:43:17 2020 +0200
@@ -34,7 +34,7 @@
from mercurial import util
ISSUE_PATTERN = re.compile(
- rb'(?:\breview|\bcodereview)\s*(?P<issue_id>[0-9]{4,})', re.I)
+ br'(?:\breview|\bcodereview)\s*(?P<issue_id>[0-9]{4,})', re.I)
COMMENT_TEMPLATE = b"""\
New changeset %(changeset_id)s by %(author)s in branch '%(branch)s':
%(commit_msg)s
diff -r f36a937c571a -r 61921472cad4 hgroundup.py
--- a/hgroundup.py Sun Sep 27 12:42:14 2020 +0200
+++ b/hgroundup.py Sun Sep 27 12:43:17 2020 +0200
@@ -39,8 +39,8 @@
from mercurial.encoding import fromlocal, unifromlocal, unitolocal
from mercurial import util
-ISSUE_PATTERN = re.compile(rb'(?:#|\bissue|\bbug)\s*(?P<issue_id>[0-9]{1,})',
- re.I)
+ISSUE_PATTERN = re.compile(
+ br'(?:#|\bissue|\bbug)\s*(?P<issue_id>[0-9]{1,})', re.I)
COMMENT_TEMPLATE = b"""\
New changeset %(changeset_id)s by %(author)s in branch '%(branch)s':
%(commit_msg)s