[New-bugs-announce] [issue13190] ConfigParser uses wrong newline on Windows

Noam Eliahu report at bugs.python.org
Sun Oct 16 19:47:52 CEST 2011

New submission from Noam Eliahu <noam.el at gmail.com>:

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: noam.el
priority: normal
severity: normal
status: open
title: ConfigParser uses wrong newline on Windows
type: behavior
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list