Caught by pytype.
Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG271af23d01a9: pvec: fix overlooked chr() call
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
indygreg |
hg-reviewers |
Caught by pytype.
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/pvec.py (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
74aa5dfc80c1 | 6ca175295632 | Augie Fackler | Nov 6 2019, 3:15 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 |
for b in bs: | for b in bs: | ||||
v = v * 256 + ord(b) | v = v * 256 + ord(b) | ||||
return v | return v | ||||
def _str(v, l): | def _str(v, l): | ||||
bs = b"" | bs = b"" | ||||
for p in pycompat.xrange(l): | for p in pycompat.xrange(l): | ||||
bs = chr(v & 255) + bs | bs = pycompat.bytechr(v & 255) + bs | ||||
v >>= 8 | v >>= 8 | ||||
return bs | return bs | ||||
def _split(b): | def _split(b): | ||||
'''depth and bitvec''' | '''depth and bitvec''' | ||||
return _bin(b[:_depthbytes]), _bin(b[_depthbytes:]) | return _bin(b[:_depthbytes]), _bin(b[_depthbytes:]) | ||||