diff -r b6eda7d63e4c -r dccee91e9d8a QScintilla/Lexers/LexerPython.py --- a/QScintilla/Lexers/LexerPython.py Thu Jul 24 22:34:05 2014 +0200 +++ b/QScintilla/Lexers/LexerPython.py Sat Jul 26 12:05:01 2014 +0200 @@ -49,10 +49,8 @@ """ Public slot to initialize the properties. """ - if Preferences.getEditor("PythonBadIndentation"): - self.setIndentationWarning(QsciLexerPython.Inconsistent) - else: - self.setIndentationWarning(QsciLexerPython.NoWarning) + self.setIndentationWarning( + Preferences.getEditor("PythonBadIndentation")) self.setFoldComments(Preferences.getEditor("PythonFoldComment")) self.setFoldQuotes(Preferences.getEditor("PythonFoldString")) if not Preferences.getEditor("PythonAutoIndent"):