mercurial/wireprototypes.py
changeset 50913 93b0de7f13ca
parent 48946 642e31cb55f0
child 50929 18c8c18993f0
--- a/mercurial/wireprototypes.py	Wed Aug 30 00:45:10 2023 +0200
+++ b/mercurial/wireprototypes.py	Fri Sep 01 12:11:11 2023 +0200
@@ -367,9 +367,7 @@
     # No explicit config. Filter out the ones that aren't supposed to be
     # advertised and return default ordering.
     if not configengines:
-        attr = (
-            b'serverpriority' if role == util.SERVERROLE else b'clientpriority'
-        )
+        attr = 'serverpriority' if role == util.SERVERROLE else 'clientpriority'
         return [
             e for e in compengines if getattr(e.wireprotosupport(), attr) > 0
         ]