# HG changeset patch # User Pierre-Yves David # Date 1693563071 -7200 # Node ID 93b0de7f13ca9bc520f2d81eb26dfe7a095c39b5 # Parent f6cb926d4189b3f0f8e30f0a74fdecf94d3ff921 compression: use sysstr to specify attribute to fetch for priority These are attributes so they should be `str`. diff -r f6cb926d4189 -r 93b0de7f13ca mercurial/utils/compression.py --- a/mercurial/utils/compression.py Wed Aug 30 00:45:10 2023 +0200 +++ b/mercurial/utils/compression.py Fri Sep 01 12:11:11 2023 +0200 @@ -185,7 +185,7 @@ """ assert role in (SERVERROLE, CLIENTROLE) - attr = b'serverpriority' if role == SERVERROLE else b'clientpriority' + attr = 'serverpriority' if role == SERVERROLE else 'clientpriority' engines = [self._engines[e] for e in self._wiretypes.values()] if onlyavailable: diff -r f6cb926d4189 -r 93b0de7f13ca mercurial/wireprototypes.py --- 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 ]