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