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( |