I just wrote a small program in python, which is:
Perhaps you get an error because of different line endings on windows and linux? Windows uses "\r\n" and Linux just "\n".
You could write script that would get rid of "\r" on linux, for example:
EDIT: I have realized that carriage returns are seen only in binary mode. So script should do something like this
with open('myscript.py', 'rb') as file: data = file.read() data = data.replace(b'\r\n', b'\n') with open('myscript.py', 'wb') as file: file.write(data)