py: fix python3 compatibility error

This commit is contained in:
Scott Shawcroft 2016-11-28 19:20:51 -08:00
parent 78f8565270
commit f8898d01ce

View File

@ -19,6 +19,7 @@ if platform.python_version_tuple()[0] == '2':
elif platform.python_version_tuple()[0] == '3':
bytes_cons = bytes
from html.entities import name2codepoint
unichr = chr
# end compatibility code
# Blacklist of qstrings that are specially handled in further