summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lee <IanLee1521@gmail.com>2015-09-10 12:55:57 -0700
committerIan Lee <IanLee1521@gmail.com>2015-09-10 12:55:57 -0700
commit960a10c920b254fa9db43318061f64f645014cdf (patch)
tree793e9e24897e7a3f9a851d150d87038e36623f22
parent870509191e75b3914e0d92a08767c6dc492d8ccd (diff)
downloadpep8-960a10c920b254fa9db43318061f64f645014cdf.tar.gz
Added minor visual whitespace improvement
-rwxr-xr-xpep8.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pep8.py b/pep8.py
index 0bea29a..45862bd 100755
--- a/pep8.py
+++ b/pep8.py
@@ -2123,17 +2123,22 @@ def _main():
pep8style = StyleGuide(parse_argv=True)
options = pep8style.options
+
if options.doctest or options.testsuite:
from testsuite.support import run_tests
report = run_tests(pep8style)
else:
report = pep8style.check_files()
+
if options.statistics:
report.print_statistics()
+
if options.benchmark:
report.print_benchmark()
+
if options.testsuite and not options.quiet:
report.print_results()
+
if report.total_errors:
if options.count:
sys.stderr.write(str(report.total_errors) + '\n')