(self, color)
| 193 | self._long_break_matcher = _re.compile(r'\n\n\n+') |
| 194 | |
| 195 | def _set_color(self, color): |
| 196 | from _colorize import can_colorize, decolor, get_theme |
| 197 | |
| 198 | if color and can_colorize(): |
| 199 | self._theme = get_theme(force_color=True).argparse |
| 200 | self._decolor = decolor |
| 201 | else: |
| 202 | self._theme = get_theme(force_no_color=True).argparse |
| 203 | self._decolor = lambda text: text |
| 204 | |
| 205 | # =============================== |
| 206 | # Section and indentation methods |
no test coverage detected