diff options
author | Ian Weller <ianweller@gmail.com> | 2008-10-06 21:08:32 -0500 |
---|---|---|
committer | Ian Weller <ianweller@gmail.com> | 2008-10-06 21:08:32 -0500 |
commit | 05d8e7d7b1c485078b98e4aa8043f803965670a6 (patch) | |
tree | 437802d935666d02339c0eeb9b1ca1a20d2f4a10 /fedora_business_cards/frontend.py | |
parent | af022f88c9e5ad8a8973475d1d78aae60ca892a0 (diff) | |
download | fedora-business-cards-05d8e7d7b1c485078b98e4aa8043f803965670a6.tar.gz fedora-business-cards-05d8e7d7b1c485078b98e4aa8043f803965670a6.tar.xz fedora-business-cards-05d8e7d7b1c485078b98e4aa8043f803965670a6.zip |
Comply to PEP 8, make pylint happier
Diffstat (limited to 'fedora_business_cards/frontend.py')
-rw-r--r-- | fedora_business_cards/frontend.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fedora_business_cards/frontend.py b/fedora_business_cards/frontend.py index 5306e69..bb7764f 100644 --- a/fedora_business_cards/frontend.py +++ b/fedora_business_cards/frontend.py @@ -35,6 +35,9 @@ import export def cmdline_card_line(data): + """ + Print a line of the business card for the cmdline frontend. + """ return "| %s%s |" % (data, ' '*(59-len(data))) @@ -49,8 +52,8 @@ def cmdline(): parser.add_option("-d", "--dpi", dest="dpi", default=300, type="int", help="DPI of exported file") parser.add_option("-t", "--template", dest="template", - default="northamerica", help="Name of template to use, "+\ - "run with --list-templates to see a list") + default="northamerica", help="Name of template to use,"+\ + " run with --list-templates to see a list") parser.add_option("--list-templates", action="store_true", default=False, dest="listtemplates", help="List available templates") parser.add_option("-u", "--username", dest="username", default="", @@ -98,7 +101,8 @@ def cmdline(): password = getpass() if options.username == "": options.username = username - infodict = information.get_information(username, password, options.username) + infodict = information.get_information(username, password, + options.username) # setup default content name = infodict['name'] title = infodict['title'] |