Skip to content

Commit

Permalink
Fix #55: dont use list comprehension where not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
yaph committed Apr 22, 2015
1 parent 9b4df86 commit 2ca1973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logya/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def main():

# generate a site for deployment, generate and gen sub commands do the same
msg = 'Generate Web site to deploy from current directory.'
[subparsers.add_parser(
c, help=msg).set_defaults(func=generate) for c in ['generate', 'gen']]
for command in ['generate', 'gen']:
subparsers.add_parser(command, help=msg).set_defaults(func=generate)

# serve static pages
p_serve = subparsers.add_parser(
Expand Down

0 comments on commit 2ca1973

Please sign in to comment.