Corrected an issue with Py3Flakes integration occurring on Windows.

Sun, 25 Apr 2010 18:06:50 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 25 Apr 2010 18:06:50 +0000
changeset 206
e24ba21c6d3a
parent 205
e5f10cf7fdc9
child 207
3f889378dede

Corrected an issue with Py3Flakes integration occurring on Windows.

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Sun Apr 25 17:30:05 2010 +0000
+++ b/QScintilla/Editor.py	Sun Apr 25 18:06:50 2010 +0000
@@ -4071,7 +4071,8 @@
                         ignoreStarImportWarnings = \
                             Preferences.getFlakes("IgnoreStarImportWarnings")
                         try:
-                            warnings = Checker(self.text(), self.fileName)
+                            txt = self.text().replace("\r\n", "\n").replace("\r", "\n")
+                            warnings = Checker(txt, self.fileName)
                             warnings.messages.sort(key = lambda a: a.lineno)
                             for warning in warnings.messages:
                                 if ignoreStarImportWarnings and \

eric ide

mercurial