[issue13190] ConfigParser uses wrong newline on Windows

2012-01-23 Thread Łukasz Langa
Łukasz Langa added the comment: That is indeed the behaviour. Citing the tutorial: "Python on Windows makes a distinction between text and binary files; the end-of-line characters in text files are automatically altered slightly when data is read or written." When you're opening the file in b

[issue13190] ConfigParser uses wrong newline on Windows

2011-10-17 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> lukasz.langa components: +Library (Lib) -None nosy: +lukasz.langa versions: +Python 3.3 -Python 2.6 ___ Python tracker ___ _

[issue13190] ConfigParser uses wrong newline on Windows

2011-10-16 Thread Noam Eliahu
New submission from Noam Eliahu : ConfigParser writes data to the config file using hard-coded newline: '\n'. This newline is not suitable for Windows. Therefore, the config file isn't readable in Notepad.exe. os.linesep should be used instead. -- components: None messages: 145632 nosy