cppcheckdata.py: fix sys.errout

This commit is contained in:
Daniel Marjamäki 2019-04-16 08:26:58 +02:00
parent 7287ffe781
commit e0da316759
1 changed files with 1 additions and 1 deletions

View File

@ -802,6 +802,6 @@ def reportError(location, severity, message, addon, errorId):
errout = sys.stdout
loc = '[%s:%i:%i]' % (location.file, location.linenr, location.col)
else:
errout = sys.errout
errout = sys.stderr
loc = '[%s:%i]' % (location.file, location.linenr)
errout.write('%s (%s) %s [%s-%s]\n' % (loc, severity, message, addon, errorId))