diff -r 9986ec0e559a -r 10516539f238 QScintilla/Lexers/LexerPython.py --- a/QScintilla/Lexers/LexerPython.py Tue Oct 15 22:03:54 2013 +0200 +++ b/QScintilla/Lexers/LexerPython.py Fri Oct 18 23:00:41 2013 +0200 @@ -37,6 +37,8 @@ def language(self): """ Public method to get the lexer language. + + @return lexer language (string) """ if not self.variant: return QsciLexerPython.language(self) @@ -56,8 +58,10 @@ if not Preferences.getEditor("PythonAutoIndent"): self.setAutoIndentStyle(QsciScintilla.AiMaintain) try: - self.setV2UnicodeAllowed(Preferences.getEditor("PythonAllowV2Unicode")) - self.setV3BinaryOctalAllowed(Preferences.getEditor("PythonAllowV3Binary")) + self.setV2UnicodeAllowed( + Preferences.getEditor("PythonAllowV2Unicode")) + self.setV3BinaryOctalAllowed( + Preferences.getEditor("PythonAllowV3Binary")) self.setV3BytesAllowed(Preferences.getEditor("PythonAllowV3Bytes")) except AttributeError: pass @@ -125,6 +129,7 @@ """ Public method to check, if a style is a comment style. + @param style style to check (integer) @return flag indicating a comment style (boolean) """ return style in [QsciLexerPython.Comment, @@ -134,6 +139,7 @@ """ Public method to check, if a style is a string style. + @param style style to check (integer) @return flag indicating a string style (boolean) """ return style in [QsciLexerPython.DoubleQuotedString,