Patchwork D2642: util: also silence py3 warnings from codec module

login
register
mail settings
Submitter phabricator
Date March 4, 2018, 5:10 p.m.
Message ID <6bd79231b52bc802fd3cea2d8678ff93@localhost.localdomain>
Download mbox | patch
Permalink /patch/28937/
State Not Applicable
Headers show

Comments

phabricator - March 4, 2018, 5:10 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGaa9c5d447980: util: also silence py3 warnings from codec module (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2642?vs=6554&id=6560

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

AFFECTED FILES
  mercurial/util.py

CHANGE DETAILS




To: durin42, #hg-reviewers, yuja
Cc: mercurial-devel

Patch

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -249,6 +249,8 @@ 
     # silence warning emitted by passing user string to re.sub()
     warnings.filterwarnings(r'ignore', r'bad escape', DeprecationWarning,
                             r'mercurial')
+    warnings.filterwarnings(r'ignore', r'invalid escape sequence',
+                            DeprecationWarning, r'mercurial')
 
 def nouideprecwarn(msg, version, stacklevel=1):
     """Issue an python native deprecation warning