At 2008-12-11T17:24:44Z, rdmur...@bitdance.com writes:

>     >>> '  ab c  \r\n'.rstrip('\r\n')
>     '  ab c  '
>     >>> '  ab c  \n'.rstrip('\r\n')
>     '  ab c  '
>     >>> '  ab c  '.rstrip('\r\n')
>     '  ab c  '

I didn't say it couldn't be done.  I just like the Perl version better.
-- 
Kirk Strauser
The Day Companies
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to