Mercurial > hg
diff mercurial/util.py @ 48897:10839394f39b
util: remove superfluous ispy3 test
Differential Revision: https://phab.mercurial-scm.org/D12300
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 10:35:42 -0700 |
parents | 6000f5b25c9b |
children | f254fc73d956 |
line wrap: on
line diff
--- a/mercurial/util.py Mon Feb 21 10:35:20 2022 -0700 +++ b/mercurial/util.py Mon Feb 21 10:35:42 2022 -0700 @@ -188,7 +188,7 @@ warnings.filterwarnings('default', '', DeprecationWarning, 'mercurial') warnings.filterwarnings('default', '', DeprecationWarning, 'hgext') warnings.filterwarnings('default', '', DeprecationWarning, 'hgext3rd') -if _dowarn and pycompat.ispy3: +if _dowarn: # silence warning emitted by passing user string to re.sub() warnings.filterwarnings( 'ignore', 'bad escape', DeprecationWarning, 'mercurial'