Skip to content

Commit

Permalink
Dont print Done if there are no messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Aug 10, 2011
1 parent 15691fe commit 6d24e52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pyflakes/scripts/pyflakes.py
Expand Up @@ -120,10 +120,10 @@ def traverse_path(warnings, dirpath, dirnames, filenames):


failed = bool(sums.get('E'))
sums = sorted(sums.items())

print
print '%s! %s' % (failed and 'Failed' or 'Done', ', '.join('%s=%s' % (k, v) for k, v in sums))
if sums:
print
print '%s! %s' % (failed and 'Failed' or 'Done', ', '.join('%s=%s' % (k, v) for k, v in sorted(sums.iteritems())))

raise SystemExit(failed)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -9,7 +9,7 @@
setup(
name="pyflakes",
license="MIT",
version="0.4.3",
version="0.4.4",
description="passive checker of Python programs",
author="Phil Frost",
maintainer="Moe Aboulkheir",
Expand Down

0 comments on commit 6d24e52

Please sign in to comment.