Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv15685
Modified Files:
bits.py
Log Message:
minor fix of Bits.__setitem__
Index: bits.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/bits.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- bits.py 26 Apr 2003 21:27:28 -0000 1.6
+++ bits.py 26 Apr 2003 21:27:45 -0000 1.7
@@ -61,7 +61,7 @@
if isinstance(index, SliceType):
if index.start == None or index.stop != None or \
not index.step in (1, 2, 4):
- raise 'Bad slice for Bits.__getitem__', index
+ raise 'Bad slice for Bits.__setitem__', index
if index.step == 1: this._contents[index.start] = chr(value % 0x100)
else:
tpl = this._byte_order + {2: 'H', 4: 'L'}[index.step]
|