[Twisted-Python] SMTP patch

Andrew Bennetts andrew-twisted at puzzling.org
Thu May 22 21:05:24 EDT 2003


On Thu, May 22, 2003 at 04:48:35PM +0200, Anders Hammarquist wrote:
> Make sure to drop any references to the file object containing the
> message data.
> 

> +        if code in xrange(200,300):

I think a much better way to do this is:

    if 200 <= code <= 300:

-Andrew.





More information about the Twisted-Python mailing list