5018 msg = err.text.strip() |
5018 msg = err.text.strip() |
5019 else: |
5019 else: |
5020 msg = err.msg |
5020 msg = err.msg |
5021 self.toggleSyntaxError(err.lineno, True, msg) |
5021 self.toggleSyntaxError(err.lineno, True, msg) |
5022 elif self.isPy2File() and self.fileName is not None: |
5022 elif self.isPy2File() and self.fileName is not None: |
|
5023 # FIXME: make this work with the current text |
5023 syntaxError, _fn, errorline, errorindex, _code, _error, \ |
5024 syntaxError, _fn, errorline, errorindex, _code, _error, \ |
5024 warnings = Utilities.py2compile( |
5025 warnings = Utilities.py2compile( |
5025 self.fileName, |
5026 self.fileName, |
5026 checkFlakes=Preferences.getFlakes( |
5027 checkFlakes=Preferences.getFlakes( |
5027 "IncludeInSyntaxCheck")) |
5028 "IncludeInSyntaxCheck")) |