This revision was automatically updated to reflect the committed changes. Closed by commit rHGe269ae40b551: wireprotov2peer: rewrite character traversal to use slices (authored by indygreg, committed by ).
REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5698?vs=13467&id=13477 REVISION DETAIL https://phab.mercurial-scm.org/D5698 AFFECTED FILES mercurial/wireprotov2peer.py CHANGE DETAILS diff --git a/mercurial/wireprotov2peer.py b/mercurial/wireprotov2peer.py --- a/mercurial/wireprotov2peer.py +++ b/mercurial/wireprotov2peer.py @@ -510,7 +510,7 @@ # Bytestring where each byte is a 0 or 1. raw = next(objs) - return [True if c == '1' else False for c in raw] + return [True if raw[i:i+1] == b'1' else False for i in range(len(raw))] def decodelistkeys(objs): # Map with bytestring keys and values. To: indygreg, #hg-reviewers Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list [email protected] https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
