Are you using Sublime Text or something? If yes, then go to Preferences, Settings-Default, and change "ensure_newline_at_eof_on_save": False to 'True' . It worked for me.