comparison mercurial/pvec.py @ 17424:e7cfe3587ea4

fix trivial spelling errors
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 15 Aug 2012 22:38:42 +0200
parents 0d175ac527c1
children 5093d2a87ff6
comparison
equal deleted inserted replaced
17406:fc14953e8e34 17424:e7cfe3587ea4
55 _bytes = _size / 8 55 _bytes = _size / 8
56 _depthbits = 24 56 _depthbits = 24
57 _depthbytes = _depthbits / 8 57 _depthbytes = _depthbits / 8
58 _vecbytes = _bytes - _depthbytes 58 _vecbytes = _bytes - _depthbytes
59 _vecbits = _vecbytes * 8 59 _vecbits = _vecbytes * 8
60 _radius = (_vecbits - 30) / 2 # high probability vecs are related 60 _radius = (_vecbits - 30) / 2 # high probability vectors are related
61 61
62 def _bin(bs): 62 def _bin(bs):
63 '''convert a bytestring to a long''' 63 '''convert a bytestring to a long'''
64 v = 0 64 v = 0
65 for b in bs: 65 for b in bs: