(self,tag = None)
| 149 | self.attributes[key] = value |
| 150 | |
| 151 | def getAllChildren(self,tag = None): |
| 152 | ret = [] |
| 153 | if tag is None: |
| 154 | return self.children |
| 155 | |
| 156 | for c in self.children: |
| 157 | if tag == c.tag: |
| 158 | ret.append(c) |
| 159 | |
| 160 | return ret |
no outgoing calls
no test coverage detected