[mod_python] Output Filters Redeaux

Graham Dumpleton grahamd at dscpl.com.au
Mon Apr 17 17:20:09 EDT 2006

On 18/04/2006, at 2:36 AM, Lee Brown wrote:

>     streamlet = filter.read()
>     while streamlet:
>         filter.req.passes += 1
>         streambuffer.write(streamlet.replace('\r\n', '\n'))
>         streamlet = filter.read()

What do you do if consecutive \r\n weren't in the same block of data  
by read()?

I realise that it may have to be a fabricated situation that causes  
that, but
thought I would ask all the same. :-)


More information about the Mod_python mailing list