util: remove superfluous ispy3 test
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Feb 2022 10:35:42 -0700
changeset 48897 10839394f39b
parent 48896 4286ec1d9842
child 48898 a98e32e5fca1
util: remove superfluous ispy3 test Differential Revision: https://phab.mercurial-scm.org/D12300
mercurial/util.py
--- 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'