mercurial/util.py
changeset 48897 10839394f39b
parent 48875 6000f5b25c9b
child 48913 f254fc73d956
equal deleted inserted replaced
48896:4286ec1d9842 48897:10839394f39b
   186     # we cannot set 'mercurial' and have it match eg: 'mercurial.scmutil'. This
   186     # we cannot set 'mercurial' and have it match eg: 'mercurial.scmutil'. This
   187     # makes the whole PYTHONWARNINGS thing useless for our usecase.
   187     # makes the whole PYTHONWARNINGS thing useless for our usecase.
   188     warnings.filterwarnings('default', '', DeprecationWarning, 'mercurial')
   188     warnings.filterwarnings('default', '', DeprecationWarning, 'mercurial')
   189     warnings.filterwarnings('default', '', DeprecationWarning, 'hgext')
   189     warnings.filterwarnings('default', '', DeprecationWarning, 'hgext')
   190     warnings.filterwarnings('default', '', DeprecationWarning, 'hgext3rd')
   190     warnings.filterwarnings('default', '', DeprecationWarning, 'hgext3rd')
   191 if _dowarn and pycompat.ispy3:
   191 if _dowarn:
   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(
   193     warnings.filterwarnings(
   194         'ignore', 'bad escape', DeprecationWarning, 'mercurial'
   194         'ignore', 'bad escape', DeprecationWarning, 'mercurial'
   195     )
   195     )
   196     warnings.filterwarnings(
   196     warnings.filterwarnings(