Commits

Ezio Melotti committed 273b472

Issue #36: use html.unescape with Python 3.4+.

Comments (0)

Files changed (1)

distlib/compat.py

     from html import escape
 except ImportError:
     from cgi import escape
-unescape = HTMLParser().unescape
+if sys.version_info[:2] < (3, 4):
+    unescape = HTMLParser().unescape
+else:
+    from html import unescape
 
 try:
     from collections import ChainMap