Commit 33343447 authored by Andreas Jung's avatar Andreas Jung

minor whitespace cleanup

parent dd0355f9
......@@ -56,7 +56,6 @@ def charsetFromMetaEquiv(html):
return None
def convertToUnicode(source, content_type, preferred_encodings):
""" Convert 'source' to unicode.
......@@ -68,7 +67,6 @@ def convertToUnicode(source, content_type, preferred_encodings):
return unicode(source, encoding), encoding
elif content_type.startswith('text/html'):
encoding = charsetFromMetaEquiv(source)
if encoding:
return unicode(source, encoding), encoding
......@@ -85,4 +83,3 @@ def convertToUnicode(source, content_type, preferred_encodings):
continue
return unicode(source), None
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment