diff options
Diffstat (limited to 'Doc/lib/required_1.py')
-rwxr-xr-x | Doc/lib/required_1.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/required_1.py b/Doc/lib/required_1.py index 44d5b30..6be5668 100755 --- a/Doc/lib/required_1.py +++ b/Doc/lib/required_1.py @@ -3,11 +3,11 @@ import optparse class OptionParser (optparse.OptionParser): def check_required (self, opt): - option = self.get_option(opt) + option = self.get_option(opt) - # Assumes the option's 'default' is set to None! - if getattr(self.values, option.dest) is None: - self.error("%s option not supplied" % option) + # Assumes the option's 'default' is set to None! + if getattr(self.values, option.dest) is None: + self.error("%s option not supplied" % option) parser = OptionParser() |