Remove force_text() in get_url_data().

This commit is contained in:
Steve Howell
2017-11-04 09:58:33 -07:00
committed by Tim Abbott
parent 66b42e0a42
commit a77cdaa527

View File

@@ -643,7 +643,7 @@ class InlineInterestingLinkProcessor(markdown.treeprocessors.Treeprocessor):
# type: (Element) -> Optional[Tuple[Text, Text]]
if e.tag == "a":
if e.text is not None:
return (e.get("href"), force_text(e.text))
return (e.get("href"), e.text)
return (e.get("href"), e.get("href"))
return None