diff --git a/pyflakes/scripts/pyflakes.py b/pyflakes/scripts/pyflakes.py index 71a48e0..c789ff4 100644 --- a/pyflakes/scripts/pyflakes.py +++ b/pyflakes/scripts/pyflakes.py @@ -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) diff --git a/setup.py b/setup.py index dcf119c..3cfcd09 100644 --- a/setup.py +++ b/setup.py @@ -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",