(self, attrs)
| 1155 | |
| 1156 | class Label: |
| 1157 | def __init__(self, attrs): |
| 1158 | self.id = attrs.get("for") |
| 1159 | self._text = attrs.get("__text").strip() |
| 1160 | self._ctext = compress_text(self._text) |
| 1161 | self.attrs = attrs |
| 1162 | self._backwards_compat = False # maintained by HTMLForm |
| 1163 | |
| 1164 | def __getattr__(self, name): |
| 1165 | if name == "text": |
nothing calls this directly
no test coverage detected