[Twisted-Python] Re: [Twisted-commits] fixed a docstring typo in twisted.internet.tcp (callse -> calls, or something like that)

Itamar Shtull-Trauring twisted at itamarst.org
Sat Dec 28 17:48:10 EST 2002


On Fri, 27 Dec 2002 21:23:10 -0600
etrepum CVS <etrepum at twistedmatrix.com> wrote:

>          # Send as much data as you can.
>          l = self.writeSomeData(self.unsent)
> -        if l < 0:
> +        if l < 0 or isinstance(l, Exception):
>              return l
>          if l == 0 and self.unsent:
>              result = 0


Hmmmm... I'm not sure if writeSomeData is ever supposed to return an
exception. Who was returning what?




More information about the Twisted-Python mailing list