]> granicus.if.org Git - python/commitdiff
Fix example.
authorGeorg Brandl <georg@python.org>
Mon, 21 Jan 2008 16:28:13 +0000 (16:28 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 21 Jan 2008 16:28:13 +0000 (16:28 +0000)
Doc/library/configparser.rst

index aabbba75314ccfb47e09a0131c1b32da91a95653..ec3b0220ba7fcc1c5b4b98f96840e969a6ca454f 100644 (file)
@@ -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)