[Python-Dev] Unix line endings required for PyRun* breaking embedded Python

Skip Montanaro skip at pobox.com
Thu Jan 20 13:44:00 CET 2005


    Just> Skip Montanaro wrote:
    >> Just re.sub("[\r\n]+", "\n", s) and I think you're good to go.

    Just> I don't think that in general you want to fold multiple empty
    Just> lines into one.

Whoops.  Yes.

Skip


More information about the Python-Dev mailing list