It appears that 2 bytes are never equals to 3 bytes.
Details
Details
- Reviewers
mharbison72 - Group Reviewers
hg-reviewers - Commits
- rHG7c1367c0b5bc: persistent-nodemap: also exchange the nodemap data over the wire
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
This could be f.endswith((b'.i', b'.d', b'.n', b'.nd')), which is easier to read IMO. I also suspect it might be slightly more efficient.