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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=960b186eafd75954507369eed443896465b0b010;p=thirdparty%2FPython%2Fcpython.git Fix example. --- diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index aabbba75314c..ec3b0220ba7f 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)