[Twisted-Python] Multiple delimiters in linereceiver

Michael Mata michael.mata at gaigen.net
Mon Nov 29 01:02:25 EST 2004

Is it possible to use the LineReceiver protocol with multiple delimiters?

I've run into situations where clients use either '\r\n' or a '\n'.  To 
handle either situation, I set the delimiter as '\n' and just filter out 
the '\r' from lineReceived().  This fix works, but it sure is ugly.

Has anyone run into a more elegant solution?

More information about the Twisted-Python mailing list