try:
meta_content = meta.get("content")
if meta_content:
- __charset = meta_content.lower().split('charset=')[1].split(';')[0]
+ __charset = meta_content.lower().split('charset=')[1].\
+ split(';')[0]
else:
__charset = False
except IndexError: # No charset in the META Content-Type
def _find_icon(Tag):
return (Tag.name == "link") and \
- (Tag.get_attribute_list("rel", '')[0].lower() in ('icon', 'shortcut icon'))
+ (Tag.get_attribute_list("rel", '')[0].lower()
+ in ('icon', 'shortcut icon'))