py: fix python3 compatibility error
This commit is contained in:
parent
78f8565270
commit
f8898d01ce
@ -19,6 +19,7 @@ if platform.python_version_tuple()[0] == '2':
|
|||||||
elif platform.python_version_tuple()[0] == '3':
|
elif platform.python_version_tuple()[0] == '3':
|
||||||
bytes_cons = bytes
|
bytes_cons = bytes
|
||||||
from html.entities import name2codepoint
|
from html.entities import name2codepoint
|
||||||
|
unichr = chr
|
||||||
# end compatibility code
|
# end compatibility code
|
||||||
|
|
||||||
# Blacklist of qstrings that are specially handled in further
|
# Blacklist of qstrings that are specially handled in further
|
||||||
|
Loading…
Reference in New Issue
Block a user