diff -r 1c0ea3a87390 -r 070b35dde35e QScintilla/Editor.py --- 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.