We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 747da33 commit c847239Copy full SHA for c847239
test/test_templating.py
@@ -429,11 +429,10 @@ def test_string_markdown_link(self):
429
self.assertEqual(p.markdown().strip(), u2s(u'<p>A link <a href="http://localhost">http://localhost</a></p>'))
430
431
def test_string_markdown_link(self):
432
- # markdown2 and markdown
+ # markdown2 and markdown escape the email address
433
try:
434
- import html
435
- html_unescape = html.unescape
436
- except AttributeError:
+ from html import unescape as html_unescape
+ except ImportError:
437
from HTMLParser import HTMLParser
438
html_unescape = HTMLParser().unescape
439
0 commit comments