~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/script_commands.py

  • Committer: Aaron Bentley
  • Date: 2011-08-05 13:52:38 UTC
  • mto: This revision was merged to the branch mainline in revision 13619.
  • Revision ID: aaron@canonical.com-20110805135238-105aiwekkc1duvhm
Fix lint

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
def types(**kwargs):
17
17
    return add_dict('_types', **kwargs)
18
18
 
 
19
 
19
20
def helps(**kwargs):
20
21
    return add_dict('_helps', **kwargs)
21
22
 
36
37
            continue
37
38
        arg_help = getattr(function, '_helps', {}).get(arg)
38
39
        if arg_help is not None:
39
 
            arg_help +=' Default: %default.'
 
40
            arg_help += ' Default: %default.'
40
41
        parser.add_option('--%s' % arg, type=arg_type, help=arg_help)
41
42
    if defaults is not None:
42
43
        defaults_dict = dict(zip(args, defaults))