Changing the mode to 'wb' for the call of maybe_gziped_file() within parse_args() only affects Scour as a standalone program with a given output file, not in conjunction with Inkscape. With 'wb' and Scour as a standalone command line program (and Python 2.6 on Win32), I get \r\n as the line ending for those line breaks made by Scour, unaltered line endings otherwise (like line breaks within comments).
Changing the mode to 'wb' for the call of maybe_gziped_file() within parse_args() only affects Scour as a standalone program with a given output file, not in conjunction with Inkscape. With 'wb' and Scour as a standalone command line program (and Python 2.6 on Win32), I get \r\n as the line ending for those line breaks made by Scour, unaltered line endings otherwise (like line breaks within comments).