Return `line` without any trailing `//` line comment, ignoring `//` that lives inside a string literal.
(line: str)
| 593 | |
| 594 | |
| 595 | def _strip_eol_comment(line: str) -> str: |
| 596 | """Return `line` without any trailing `//` line comment, ignoring `//` |
| 597 | that lives inside a string literal.""" |
| 598 | return _strip_strings_and_comments(line).rstrip() |
| 599 | |
| 600 | |
| 601 | def _is_brace_free_control(line: str) -> bool: |
no test coverage detected