eric6/Utilities/ModuleParser.py

changeset 7676
0f67b4562d98
parent 7639
422fd05e9c91
child 7699
d338c533f5f0
equal deleted inserted replaced
7675:7d23e502fe85 7676:0f67b4562d98
495 Public method to scan the source text and retrieve the relevant 495 Public method to scan the source text and retrieve the relevant
496 information. 496 information.
497 497
498 @param src the source text to be scanned (string) 498 @param src the source text to be scanned (string)
499 """ 499 """
500 # convert eol markers the Python style
501 src = src.replace("\r\n", "\n").replace("\r", "\n")
500 if self.type in [PY_SOURCE, PTL_SOURCE]: 502 if self.type in [PY_SOURCE, PTL_SOURCE]:
501 self.__py_scan(src) 503 self.__py_scan(src)
502 elif self.type == RB_SOURCE: 504 elif self.type == RB_SOURCE:
503 self.__rb_scan(src) 505 self.__rb_scan(src)
504 506

eric ide

mercurial