mercurial/util.py
changeset 37455 9ecb7c471cfb
parent 37382 de9f9f888900
child 37496 1765ed63db40
--- 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