--- a/UtilitiesPython2/Py2SyntaxChecker.py Fri Oct 18 18:42:10 2013 +0200 +++ b/UtilitiesPython2/Py2SyntaxChecker.py Sat Oct 19 11:14:51 2013 +0200 @@ -46,7 +46,8 @@ code = "" error = "" lines = traceback.format_exception_only(SyntaxError, detail) - match = re.match('\s*File "(.+)", line (\d+)', + match = re.match( + '\s*File "(.+)", line (\d+)', lines[0].replace('<string>', '%s' % file)) if match is not None: fn, line = match.group(1, 2)