summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2008-02-23 12:46:10 (GMT)
committerFacundo Batista <facundobatista@gmail.com>2008-02-23 12:46:10 (GMT)
commitb12f0b581a6f268d0611c87012d1273aeca220b8 (patch)
tree15cd0ffb90086c018c9542aa516b988aff18bde1 /Doc
parent1660933d23ed99393c2ea9bbe0204318936e3bbc (diff)
downloadcpython-b12f0b581a6f268d0611c87012d1273aeca220b8.zip
cpython-b12f0b581a6f268d0611c87012d1273aeca220b8.tar.gz
cpython-b12f0b581a6f268d0611c87012d1273aeca220b8.tar.bz2
Issue 1781. Now ConfigParser.add_section does not let you add a
DEFAULT section any more, because it duplicated sections with the rest of the machinery. Thanks Tim Lesher and Manuel Kaufmann.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/configparser.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst
index ec3b022..96c001f 100644
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -187,8 +187,9 @@ RawConfigParser Objects
.. method:: RawConfigParser.add_section(section)
Add a section named *section* to the instance. If a section by the given name
- already exists, :exc:`DuplicateSectionError` is raised.
-
+ already exists, :exc:`DuplicateSectionError` is raised. If the name
+ ``DEFAULT`` (or any of it's case-insensitive variants) is passed,
+ :exc:`ValueError` is raised.
.. method:: RawConfigParser.has_section(section)