summaryrefslogtreecommitdiff
path: root/Demo/classes
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-04-21 16:06:27 +0000
committerGuido van Rossum <guido@python.org>1999-04-21 16:06:27 +0000
commit80b76385021b10b2c5bfd236582b82278f60ab70 (patch)
tree797221fb22e16d506144b036a41ffd6d96f50242 /Demo/classes
parent11fb5fd1ac80c37143fdb526818bfe3c0c643ccb (diff)
downloadcpython-80b76385021b10b2c5bfd236582b82278f60ab70.tar.gz
Correct spelling of length, discovered by Christian Tismer.
Diffstat (limited to 'Demo/classes')
-rwxr-xr-xDemo/classes/bitvec.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/classes/bitvec.py b/Demo/classes/bitvec.py
index 69718d7a3e..b3469975a5 100755
--- a/Demo/classes/bitvec.py
+++ b/Demo/classes/bitvec.py
@@ -84,7 +84,7 @@ class BitVec:
raise error, 'bitvec()\'s 2nd parameter must be int'
computed_length = _compute_len(param)
if computed_length > length:
- print 'warning: bitvec() value is longer than the lenght indicates, truncating value'
+ print 'warning: bitvec() value is longer than the length indicates, truncating value'
self._data = self._data & \
((1L << length) - 1)
self._len = length
@@ -178,7 +178,7 @@ class BitVec:
if length == 0 or other._len == 0:
return cmp(length, other._len)
if length != other._len:
- min_lenght = min(length, other._len)
+ min_length = min(length, other._len)
return cmp(self[:min_length], other[:min_length]) or \
cmp(self[min_length:], other[min_length:])
#the lengths are the same now...