From 73b7027b8330ea813c4ba83f074bc8937a952d9c Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 13 Apr 2014 05:28:46 +0300 Subject: objstr: Add str.encode() and bytes.decode() methods. These largely duplicate str() & bytes() constructors' functionality, but can be used to achieve Python2 compatibility. --- py/makeqstrdata.py | 1 + 1 file changed, 1 insertion(+) (limited to 'py/makeqstrdata.py') diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py index 81b0035451..0cc9ba1b61 100644 --- a/py/makeqstrdata.py +++ b/py/makeqstrdata.py @@ -10,6 +10,7 @@ if platform.python_version_tuple()[0] == '2': from htmlentitydefs import codepoint2name elif platform.python_version_tuple()[0] == '3': from html.entities import codepoint2name +codepoint2name[ord('-')] = 'hyphen'; # add some custom names to map characters that aren't in HTML codepoint2name[ord('.')] = 'dot' -- cgit v1.2.3