summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)