changeset e99743435567 in tryton-tools:default
details: https://hg.tryton.org/tryton-tools?cmd=changeset;node=e99743435567
description:
        Use only bytes for regexp

        rb'' is invalid in Python2.
diffstat:

 hgrietveld.py |  2 +-
 hgroundup.py  |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 4919f1643360 -r e99743435567 hgrietveld.py
--- a/hgrietveld.py     Sun Sep 27 12:19:39 2020 +0200
+++ b/hgrietveld.py     Sun Sep 27 12:34:00 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)
+    b'(?:\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 4919f1643360 -r e99743435567 hgroundup.py
--- a/hgroundup.py      Sun Sep 27 12:19:39 2020 +0200
+++ b/hgroundup.py      Sun Sep 27 12:34:00 2020 +0200
@@ -39,7 +39,7 @@
 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,})',
+ISSUE_PATTERN = re.compile(b'(?:#|\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':

Reply via email to