Mercurial > public > mercurial-scm > hg-stable
diff mercurial/utils/compression.py @ 50936:93b0de7f13ca
compression: use sysstr to specify attribute to fetch for priority
These are attributes so they should be `str`.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Sep 2023 12:11:11 +0200 |
parents | 642e31cb55f0 |
children | d718eddf01d9 |
line wrap: on
line diff
--- 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: