equal
deleted
inserted
replaced
191 if _dowarn and pycompat.ispy3: |
191 if _dowarn and pycompat.ispy3: |
192 # silence warning emitted by passing user string to re.sub() |
192 # silence warning emitted by passing user string to re.sub() |
193 warnings.filterwarnings(r'ignore', r'bad escape', DeprecationWarning, |
193 warnings.filterwarnings(r'ignore', r'bad escape', DeprecationWarning, |
194 r'mercurial') |
194 r'mercurial') |
195 warnings.filterwarnings(r'ignore', r'invalid escape sequence', |
195 warnings.filterwarnings(r'ignore', r'invalid escape sequence', |
|
196 DeprecationWarning, r'mercurial') |
|
197 # TODO: reinvent imp.is_frozen() |
|
198 warnings.filterwarnings(r'ignore', r'the imp module is deprecated', |
196 DeprecationWarning, r'mercurial') |
199 DeprecationWarning, r'mercurial') |
197 |
200 |
198 def nouideprecwarn(msg, version, stacklevel=1): |
201 def nouideprecwarn(msg, version, stacklevel=1): |
199 """Issue an python native deprecation warning |
202 """Issue an python native deprecation warning |
200 |
203 |