[error in example (docs)] /doc/web/howto/listings/client/response.py -- negative index of received data
|Reported by:||polymorphm||Owned by:|
good day! :)
/doc/web/howto/listings/client/response.py -- has error
negative index of received data in this block:
def dataReceived(self, bytes): if self.remaining: display = bytes[:self.remaining] print 'Some data received:' print display self.remaining -= len(display) # ERROR IN LINE! # need to rewrite this line.. approximately like: # self.remaining = max(self.remaining - len(display), 0)
thanks very much!
Change History (2)
Note: See TracTickets for help on using tickets.