comparison zb.py @ 7:579dedf5a1f1

Rejoin line break, left over from removal of struct.
author darius@inchoate.localdomain
date Thu, 01 Nov 2007 16:32:17 +1030
parents 9c499d923544
children 9f0808b13454
comparison
equal deleted inserted replaced
6:9c499d923544 7:579dedf5a1f1
255 self.state = 'sizemsb' 255 self.state = 'sizemsb'
256 elif (self.state == 'sizemsb'): 256 elif (self.state == 'sizemsb'):
257 self.bufmsb = d 257 self.bufmsb = d
258 self.state = 'sizelsb' 258 self.state = 'sizelsb'
259 elif (self.state == 'sizelsb'): 259 elif (self.state == 'sizelsb'):
260 self.dataleft = self.bufmsb << 8 | \ 260 self.dataleft = self.bufmsb << 8 | d
261 d
262 self.state = 'data' 261 self.state = 'data'
263 elif (self.state == 'data'): 262 elif (self.state == 'data'):
264 self.buffer.append(d) 263 self.buffer.append(d)
265 self.dataleft = self.dataleft - 1 264 self.dataleft = self.dataleft - 1
266 if (self.dataleft == 0): 265 if (self.dataleft == 0):