Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eda80ea

Browse files
committed
Correct spelling of length, discovered by Christian Tismer.
1 parent a889add commit eda80ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Demo/classes/bitvec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(self, *params):
8484
raise error, 'bitvec()\'s 2nd parameter must be int'
8585
computed_length = _compute_len(param)
8686
if computed_length > length:
87-
print 'warning: bitvec() value is longer than the lenght indicates, truncating value'
87+
print 'warning: bitvec() value is longer than the length indicates, truncating value'
8888
self._data = self._data & \
8989
((1L << length) - 1)
9090
self._len = length
@@ -178,7 +178,7 @@ def __cmp__(self, other, *rest):
178178
if length == 0 or other._len == 0:
179179
return cmp(length, other._len)
180180
if length != other._len:
181-
min_lenght = min(length, other._len)
181+
min_length = min(length, other._len)
182182
return cmp(self[:min_length], other[:min_length]) or \
183183
cmp(self[min_length:], other[min_length:])
184184
#the lengths are the same now...

0 commit comments

Comments
 (0)