Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv15555
Modified Files:
bits.py
Log Message:
minor fix of Bits.set_single_item
Index: bits.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/bits.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- bits.py 27 Apr 2003 11:37:13 -0000 1.14
+++ bits.py 27 Apr 2003 12:08:16 -0000 1.15
@@ -52,7 +52,7 @@
def set_single_item (this, index, step, value): # for easy extension
if index < 0 or index > len(this._contents):
raise IndexError, index
- if step == 1: this._contents[start] = chr(value % 0x100)
+ if step == 1: this._contents[index] = chr(value % 0x100)
else:
tpl = this._byte_order + {2: 'H', 4: 'L'}[step]
this._contents[index : index + step] = \
|