how to generate py files without default windows crlf ?
Posted
by shahjapan
on Stack Overflow
See other posts from Stack Overflow
or by shahjapan
Published on 2010-04-29T12:26:17Z
Indexed on
2010/04/29
12:37 UTC
Read the original article
Hit count: 384
how can I write a .py file from python such that its type should not be like 'ASCII file with Windows CRLF'
because when i run file.write(data)
inside windows it write the file but when I try to
eval(open(file.py).read())
it fails and gives syntax error because of windows CRLF on each line......
© Stack Overflow or respective owner