Print the result of self.format(chain=chain) to 'file'.
(self, *, file=None, chain=True, **kwargs)
| 1567 | |
| 1568 | |
| 1569 | def print(self, *, file=None, chain=True, **kwargs): |
| 1570 | """Print the result of self.format(chain=chain) to 'file'.""" |
| 1571 | colorize = kwargs.get("colorize", False) |
| 1572 | if file is None: |
| 1573 | file = sys.stderr |
| 1574 | for line in self.format(chain=chain, colorize=colorize): |
| 1575 | print(line, file=file, end="") |
| 1576 | |
| 1577 | |
| 1578 | _MAX_CANDIDATE_ITEMS = 750 |