Patchwork D6863: py3: byte-prefix sanitisation regexes in phabricator.py

login
register
mail settings
Submitter phabricator
Date Sept. 18, 2019, 4:52 a.m.
Message ID <3b2f46f8c66990fbad2e32729e6de571@localhost.localdomain>
Download mbox | patch
Permalink /patch/41713/
State Not Applicable
Headers show

Comments

phabricator - Sept. 18, 2019, 4:52 a.m.
Closed by commit rHG04c6de38734d: py3: byte-prefix sanitisation regexes in phabricator.py (authored by Kwan).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6863?vs=16574&id=16584

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6863/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6863

AFFECTED FILES
  hgext/phabricator.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -136,8 +136,8 @@ 
 
     def sanitiserequest(request):
         request.body = re.sub(
-            r'cli-[a-z0-9]+',
-            r'cli-hahayouwish',
+            br'cli-[a-z0-9]+',
+            br'cli-hahayouwish',
             request.body
         )
         return request