extensions: remove superfluous pycompat.ispy3 check
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Feb 2022 10:31:53 -0700
changeset 48894 5917dc5d1e52
parent 48893 895085109842
child 48895 62baa61efe8f
extensions: remove superfluous pycompat.ispy3 check This is always True now. Differential Revision: https://phab.mercurial-scm.org/D12297
mercurial/extensions.py
--- a/mercurial/extensions.py	Mon Feb 21 10:31:00 2022 -0700
+++ b/mercurial/extensions.py	Mon Feb 21 10:31:53 2022 -0700
@@ -875,7 +875,7 @@
         a = node.args[0]
         if isinstance(a, ast.Str):
             name = pycompat.sysbytes(a.s)
-        elif pycompat.ispy3 and isinstance(a, ast.Bytes):
+        elif isinstance(a, ast.Bytes):
             name = a.s
         else:
             continue