MCPcopy Index your code
hub / github.com/pyload/pyload / normalize_attrs

Method normalize_attrs

module/lib/feedparser.py:1854–1860  ·  view source on GitHub ↗
(self, attrs)

Source from the content-addressed store, hash-verified

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

Callers 2

unknown_starttagMethod · 0.80
unknown_starttagMethod · 0.80

Calls 2

dictFunction · 0.85
itemsMethod · 0.80

Tested by

no test coverage detected