#4827: fix callback example.

This commit is contained in:
Georg Brandl 2009-02-05 11:33:21 +00:00
parent 4400d84bf7
commit 253a29fa4d
1 changed files with 1 additions and 1 deletions

View File

@ -1511,7 +1511,7 @@ Here's an example of a callback option that takes no arguments, and simply
records that the option was seen::
def record_foo_seen(option, opt_str, value, parser):
parser.saw_foo = True
parser.values.saw_foo = True
parser.add_option("--foo", action="callback", callback=record_foo_seen)