Skip to content

Commit aa8ccb4

Browse files
authored
Merge pull request google#184 from LukeCz/stdout
Cpplint is unnecessarily polluting stderr
2 parents 389efa2 + e09f478 commit aa8ccb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpplint/cpplint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ def PrintErrorCounts(self):
936936
for category, count in self.errors_by_category.iteritems():
937937
sys.stderr.write('Category \'%s\' errors found: %d\n' %
938938
(category, count))
939-
sys.stderr.write('Total errors found: %d\n' % self.error_count)
939+
sys.stdout.write('Total errors found: %d\n' % self.error_count)
940940

941941
_cpplint_state = _CppLintState()
942942

@@ -6033,7 +6033,7 @@ def ProcessFile(filename, vlevel, extra_check_functions=[]):
60336033
Error(filename, linenum, 'whitespace/newline', 1,
60346034
'Unexpected \\r (^M) found; better to use only \\n')
60356035

6036-
sys.stderr.write('Done processing %s\n' % filename)
6036+
sys.stdout.write('Done processing %s\n' % filename)
60376037
_RestoreFilters()
60386038

60396039

0 commit comments

Comments
 (0)