eric6/Utilities/ModuleParser.py

changeset 7676
0f67b4562d98
parent 7639
422fd05e9c91
child 7699
d338c533f5f0
--- a/eric6/Utilities/ModuleParser.py	Mon Aug 24 18:12:22 2020 +0200
+++ b/eric6/Utilities/ModuleParser.py	Tue Aug 25 14:53:43 2020 +0200
@@ -497,6 +497,8 @@
         
         @param src the source text to be scanned (string)
         """
+        # convert eol markers the Python style
+        src = src.replace("\r\n", "\n").replace("\r", "\n")
         if self.type in [PY_SOURCE, PTL_SOURCE]:
             self.__py_scan(src)
         elif self.type == RB_SOURCE:

eric ide

mercurial