From: W. Trevor King Date: Thu, 25 Jun 2009 17:30:23 +0000 (-0400) Subject: Remove blank line from tag's output if no tags exist X-Git-Tag: 1.0.0~69^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=586a426cedc62893d857f54b9b3e588289f78f0c;p=be.git Remove blank line from tag's output if no tags exist --- diff --git a/becommands/tag.py b/becommands/tag.py index 2394284..5a18a7c 100644 --- a/becommands/tag.py +++ b/becommands/tag.py @@ -89,7 +89,8 @@ def execute(args, test=False): if tag not in tags: tags.append(tag) tags.sort() - print '\n'.join(tags) + if len(tags) > 0: + print '\n'.join(tags) return bug = bd.bug_from_shortname(args[0]) if len(args) == 2: