From f15dfc69fb2e5e433d0eeee5c7f7126c82d274a2 Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Wed, 13 Jul 2016 17:06:30 +0500 Subject: [PATCH] Make code Python 3 compatible. Make convert_html_to_markdown function Python 3 compatible. --- zerver/lib/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/notifications.py b/zerver/lib/notifications.py index 0f3f80852f..e7ca99da06 100644 --- a/zerver/lib/notifications.py +++ b/zerver/lib/notifications.py @@ -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'))