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 |