Show tree using brackets notation
(self)
| 51 | self.children = list(children) |
| 52 | |
| 53 | def bracket(self): |
| 54 | """Show tree using brackets notation""" |
| 55 | if self.tag == 'td': |
| 56 | result = '"tag": %s, "colspan": %d, "rowspan": %d, "text": %s' % \ |
| 57 | (self.tag, self.colspan, self.rowspan, self.content) |
| 58 | else: |
| 59 | result = '"tag": %s' % self.tag |
| 60 | for child in self.children: |
| 61 | result += child.bracket() |
| 62 | return "{{{}}}".format(result) |
| 63 | |
| 64 | |
| 65 | class CustomConfig(Config): |
nothing calls this directly
no outgoing calls
no test coverage detected