QScintilla/Editor.py

branch
Py2 comp.
changeset 3065
070b35dde35e
parent 3060
5883ce99ee12
child 3080
6c0a430b19df
--- a/QScintilla/Editor.py	Sun Nov 03 16:23:07 2013 +0100
+++ b/QScintilla/Editor.py	Tue Nov 05 22:23:38 2013 +0100
@@ -4940,13 +4940,12 @@
             not self.autosaveManuallyDisabled and \
             not self.isReadOnly()
 
-
     def __autoSyntaxCheck(self):
         """
         Private method to perform an automatic syntax check of the file.
         """
         isPy2 = self.isPy2File()
-        if (isPy2 or self.isPy3File()) == False:
+        if (isPy2 or self.isPy3File()) is False:
             return
         
         if Preferences.getEditor("AutoCheckSyntax"):
@@ -4955,8 +4954,9 @@
             self.clearSyntaxError()
             self.clearFlakesWarnings()
 
-            syntaxError, _fn, errorline, errorindex, _code, _error, warnings = \
-                Utilities.compile(self.fileName or "(Unnamed)", self.text(), isPy2)
+            syntaxError, _fn, errorline, errorindex, _code, _error, warnings =\
+                Utilities.compile(
+                    self.fileName or "(Unnamed)", self.text(), isPy2)
             if syntaxError:
                 self.toggleSyntaxError(errorline, errorindex, True, _error)
             else:
@@ -4964,7 +4964,6 @@
                     self.toggleFlakesWarning(
                         warning[2], True, warning[3])
 
-
     def __initOnlineSyntaxCheck(self):
         """
         Private slot to initialize the online syntax check.

eric ide

mercurial