Strip CR so comparisons work for both LF and CRLF input.
(line: str)
| 93 | |
| 94 | @staticmethod |
| 95 | def _norm(line: str) -> str: |
| 96 | """Strip CR so comparisons work for both LF and CRLF input.""" |
| 97 | return line.rstrip("\r") |
| 98 | |
| 99 | # ------------- scanning convenience ----------------------------------- # |
| 100 | def is_done(self, prefixes: Optional[Tuple[str, ...]] = None) -> bool: |
no outgoing calls
no test coverage detected