changeset 48988: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 4286ec1d9842
children a98e32e5fca1
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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'