DebugClients/Python/AsyncFile.py

changeset 3032
927a2f8b3669
parent 3021
801289962f4e
child 3160
209a07d7e401
equal deleted inserted replaced
3031:ed2eaa573ca5 3032:927a2f8b3669
274 self.__checkMode('w') 274 self.__checkMode('w')
275 tries = 0 275 tries = 0
276 if not self.wpending: 276 if not self.wpending:
277 self.wpending = s 277 self.wpending = s
278 elif type(self.wpending) != type(s) or \ 278 elif type(self.wpending) != type(s) or \
279 len(self.wpending) + len(s) > self.maxbuffersize: 279 len(self.wpending) + len(s) > self.maxbuffersize:
280 # flush wpending so that different string types are not 280 # flush wpending so that different string types are not
281 # concatenated 281 # concatenated
282 while self.wpending: 282 while self.wpending:
283 # if we have a persistent error in sending the data, an 283 # if we have a persistent error in sending the data, an
284 # exception will be raised in __nWrite 284 # exception will be raised in __nWrite

eric ide

mercurial