changeset 37455:9ecb7c471cfb

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.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 07 Apr 2018 13:21:59 +0900
parents 0a9751ece252
children 19becdf565ef
files mercurial/util.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Sat Apr 07 00:00:33 2018 -0700
+++ b/mercurial/util.py	Sat Apr 07 13:21:59 2018 +0900
@@ -194,6 +194,9 @@
                             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