diff -r 2bea77c643a0 -r 1010f737def2 eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py --- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py Fri Jul 12 18:10:12 2019 +0200 +++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py Fri Jul 12 18:11:54 2019 +0200 @@ -24,7 +24,8 @@ """ Constructor - @param filename name of the file (string) + @param filename name of the file + @type str @param loc location of the issue """ self.filename = filename @@ -35,17 +36,20 @@ """ Special method return a string representation of the instance object. - @return string representation of the object (string) + @return string representation of the object + @rtype str """ - return '{0}:{1}: {2}'.format( - self.filename, self.lineno, self.message % self.message_args) + return '{0}:{1}:{2} {3}'.format( + self.filename, self.lineno, self.col + 1, + self.message % self.message_args) def getMessageData(self): """ Public method to get the individual message data elements. @return tuple containing file name, line number, column, message ID - and message arguments (string, integer, integer, string, list) + and message arguments + @rtype tuple of (str, int, int, str, list) """ return (self.filename, self.lineno, self.col, self.message_id, self.message_args) @@ -460,7 +464,7 @@ """ Class defining the "Default except not being the last" message. - Indicates an except block as not the last exception handler. + Indicates an except: block as not the last exception handler. """ message_id = 'F25' message = 'default \'except:\' must be last'