D2642: util: also silence py3 warnings from codec module
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sun Mar 4 12:10:48 EST 2018
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
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
To: durin42, #hg-reviewers, yuja
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list