(self, attrs)
| 1852 | sgmllib.SGMLParser.close(self) |
| 1853 | |
| 1854 | def normalize_attrs(self, attrs): |
| 1855 | if not attrs: return attrs |
| 1856 | # utility method to be called by descendants |
| 1857 | attrs = dict([(k.lower(), v) for k, v in attrs]).items() |
| 1858 | attrs = [(k, k in ('rel', 'type') and v.lower() or v) for k, v in attrs] |
| 1859 | attrs.sort() |
| 1860 | return attrs |
| 1861 | |
| 1862 | def unknown_starttag(self, tag, attrs): |
| 1863 | # called for each start tag |
no test coverage detected