diff -r 82cf392c99f6 -r 293e1763982e mercurial/util.py --- a/mercurial/util.py Sat Jun 17 04:02:25 2023 +0200 +++ b/mercurial/util.py Sat Jun 17 04:05:18 2023 +0200 @@ -2211,7 +2211,8 @@ class _re: - def _checkre2(self): + @staticmethod + def _checkre2(): global _re2 global _re2_input if _re2 is not None: