From: Georg Brandl Date: Mon, 21 Jan 2008 16:28:13 +0000 (+0000) Subject: Fix example. X-Git-Tag: v2.6a1~489 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=960b186eafd75954507369eed443896465b0b010;p=python Fix example. --- diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index aabbba7531..ec3b0220ba 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)