| 450 | |
| 451 | |
| 452 | class Text(Printable): |
| 453 | |
| 454 | def __init__(self): |
| 455 | self.objs = [] |
| 456 | self.width = 0 |
| 457 | |
| 458 | def output(self, stream, output_width): |
| 459 | for obj in self.objs: |
| 460 | stream.write(obj) |
| 461 | return output_width + self.width |
| 462 | |
| 463 | def add(self, obj, width): |
| 464 | self.objs.append(obj) |
| 465 | self.width += width |
| 466 | |
| 467 | |
| 468 | class Breakable(Printable): |
no outgoing calls
no test coverage detected
searching dependent graphs…