This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients lukasz.langa, spaceone, terry.reedy
Date 2015-11-24.23:42:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448408529.44.0.485560612364.issue25723@psf.upfronthosting.co.za>
In-reply-to
Content
This strikes me as an overt bug.  .add_section should add one new empty section, not a section with an item and a second section.  Since a section name cannot contain \n, I would agree that passing a string containing \n should raise ValueError("Section names cannot contain newlines.").  Since anything else without ']' is valid and since even that can be accommodated with a custom section name re, that is the only check that should be done.
History
Date User Action Args
2015-11-24 23:42:09terry.reedysetrecipients: + terry.reedy, lukasz.langa, spaceone
2015-11-24 23:42:09terry.reedysetmessageid: <1448408529.44.0.485560612364.issue25723@psf.upfronthosting.co.za>
2015-11-24 23:42:09terry.reedylinkissue25723 messages
2015-11-24 23:42:09terry.reedycreate