dos2unix and unix2dos in Python 2.6

Posted by Sridhar Ratnakumar on Stack Overflow See other posts from Stack Overflow or by Sridhar Ratnakumar
Published on 2010-06-10T17:47:46Z Indexed on 2010/06/10 17:52 UTC
Read the original article Hit count: 408

What is the most concise code you can write for dos2unix and unix2dos (CR/LF conversion) using Python 2.6+? These functions must accept a filename argument and do an in-place replacement.

© Stack Overflow or respective owner

Related posts about python

Related posts about conversion