QScintilla/Lexers/LexerPython.py

changeset 3730
dccee91e9d8a
parent 3656
441956d8fce5
child 4021
195a471c327b
--- 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"):

eric ide

mercurial