Makes the output understandable by VS when compiled by MSVC.

This commit is contained in:
shiqian
2008-07-23 20:32:11 +00:00
parent b758726396
commit 253d2bc576
4 changed files with 69 additions and 114 deletions

View File

@@ -78,11 +78,12 @@ def RemoveLocations(output):
Returns:
output with all file location info (in the form of
'DIRECTORY/FILE_NAME:LINE_NUMBER: ') replaced by
'DIRECTORY/FILE_NAME:LINE_NUMBER: 'or
'DIRECTORY\\FILE_NAME(LINE_NUMBER): ') replaced by
'FILE_NAME:#: '.
"""
return re.sub(r'.*[/\\](.+)\:\d+\: ', r'\1:#: ', output)
return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\: ', r'\1:#: ', output)
def RemoveStackTraces(output):