I want to write out all text files with LF as ending instead of CRLF on Windows. Not just for my code, but for all other third-party dependencies as well.
I know I can just open(..., newline='\n', ...) for my codes. But there are external packages that write files and they open() without such options, so those files are opened in universal line ending mode and ends up being written in CRLF.
How can I change the default behavior from CRLF to LF on Windows? Apparently trying to overwrite os.linesep = '\n' didn't work.