]> granicus.if.org Git - python/commitdiff
#5153: fix typo in example.
authorGeorg Brandl <georg@python.org>
Thu, 5 Feb 2009 10:30:57 +0000 (10:30 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 5 Feb 2009 10:30:57 +0000 (10:30 +0000)
Doc/library/optparse.rst

index 6af40745fbce1ed47243aa131b10e51b96724181..604ac7f8592935eaed4207573bf6c7881833185b 100644 (file)
@@ -1651,7 +1651,7 @@ arguments::
             value.append(arg)
 
         del parser.rargs[:len(value)]
-        setattr(parser.values, option.dest, value))
+        setattr(parser.values, option.dest, value)
 
    [...]
    parser.add_option("-c", "--callback", dest="vararg_attr",