summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-21 16:28:13 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-21 16:28:13 (GMT)
commit960b186eafd75954507369eed443896465b0b010 (patch)
tree860dcbcec2174a68f9dd352506e372791a6123e3 /Doc/library
parent5ca3fd8d394c77b552949ef02eedab2fda61ed83 (diff)
downloadcpython-960b186eafd75954507369eed443896465b0b010.zip
cpython-960b186eafd75954507369eed443896465b0b010.tar.gz
cpython-960b186eafd75954507369eed443896465b0b010.tar.bz2
Fix example.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/configparser.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst
index aabbba7..ec3b022 100644
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -446,3 +446,5 @@ The function ``opt_move`` below can be used to move options between sections::
# Create non-existent section
config.add_section(section2)
opt_move(config, section1, section2, option)
+ else:
+ config.remove_option(section1, option)