[Wisp-cvs] wisp/users/dig bits.py,1.5,1.6
Status: Alpha
Brought to you by:
digg
|
From: <di...@us...> - 2003-04-26 21:27:31
|
Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv15612
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.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- bits.py 26 Apr 2003 21:24:14 -0000 1.5
+++ bits.py 26 Apr 2003 21:27:28 -0000 1.6
@@ -67,4 +67,4 @@
tpl = this._byte_order + {2: 'H', 4: 'L'}[index.step]
this._contents[index.start : index.start + index.step] = \
array('c', pack(tpl, value % (1L << (index.step << 3))))
- else: return ord(this._contents[index])
+ else: this._contents[index] = chr(value % 0x100)
|