--- 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: