Print text with highlighting and no end characters.
(
text: str, color: Optional[str] = None, end: str = "", file: Optional[TextIO] = None
)
| 501 | |
| 502 | |
| 503 | def print_text( |
| 504 | text: str, color: Optional[str] = None, end: str = "", file: Optional[TextIO] = None |
| 505 | ) -> None: |
| 506 | """Print text with highlighting and no end characters.""" |
| 507 | text_to_print = get_colored_text(text, color) if color else text |
| 508 | print(text_to_print, end=end, file=file) |
| 509 | |
| 510 | def extract_patch( |
| 511 | repo_dir: str |
nothing calls this directly
no test coverage detected