Make code Python 3 compatible.

Make convert_html_to_markdown function Python 3 compatible.
This commit is contained in:
Umair Khan 2016-07-13 17:06:30 +05:00 committed by Tim Abbott
parent 34a251adb1
commit f15dfc69fb
1 changed files with 1 additions and 1 deletions

View File

@ -515,4 +515,4 @@ def convert_html_to_markdown(html):
# form `![](http://foo.com/image.png?12345)` into
# `[image.png](http://foo.com/image.png)`.
return re.sub(r"!\[\]\((\S*)/(\S*)\?(\S*)\)",
r"[\2](\1/\2)", markdown).decode("utf-8")
r"[\2](\1/\2)", markdown.decode('utf-8'))