Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv14577a
Modified Files:
bits.py
Log Message:
dropped Bits.add_byte, Bits.add_wyde, and Bits.add_tetra
Index: bits.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/bits.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- bits.py 26 Apr 2003 21:10:39 -0000 1.4
+++ bits.py 26 Apr 2003 21:24:14 -0000 1.5
@@ -45,10 +45,6 @@
this._contents.fromstring(s)
def from_array (this, a):
this._contents.extend(a)
- def add_byte (this, ofs, value):
- this._contents[ofs] = chr((ord(this._contents[ofs]) + value) % 0x100)
- def add_wyde (this, ofs, value): this[ofs::2] += value
- def add_tetra (this, ofs, value): this[ofs::4] += value
def __getitem__ (this, index):
if isinstance(index, SliceType):
|