# HG changeset patch # User Yuya Nishihara # Date 2018-04-07 04:21:59 # Node ID 9ecb7c471cfb8e4c4b19cb1d7f7df9b49a3080c5 # Parent 0a9751ece2522528197635205b3f1cbca4fab102 py3: silence warning about deprecation of imp module Well, we could fix that, but we aren't yet to reach the state caring about deprecation on the Python 3 line. So let's silence it for now to fix tons of "minor" Py2/3 incompatibilities by relying on our test suite. diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -194,6 +194,9 @@ if _dowarn and pycompat.ispy3: r'mercurial') warnings.filterwarnings(r'ignore', r'invalid escape sequence', DeprecationWarning, r'mercurial') + # TODO: reinvent imp.is_frozen() + warnings.filterwarnings(r'ignore', r'the imp module is deprecated', + DeprecationWarning, r'mercurial') def nouideprecwarn(msg, version, stacklevel=1): """Issue an python native deprecation warning