[Twisted-Python] SMTP patch

Andrew Bennetts andrew-twisted at puzzling.org
Fri May 23 21:27:53 EDT 2003


On Fri, May 23, 2003 at 08:57:56AM -0400, Peter Hansen wrote:
> Andrew Bennetts wrote:
> > 
> > Of course, if the status code was left as a string, then you could simply do
> > "if code.startswith('2'):"  :)
> 
> if str(code).startswith('2'):  ??

Note the words "if the status code was left as a string"  :)

-Andrew.





More information about the Twisted-Python mailing list