From a71c83a1d1aeca1d81d7c673929f8e836dec131e Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 15 Feb 2014 11:34:50 +0000 Subject: Change mp_obj_type_t.name from const char * to qstr. Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method. --- py/makeqstrdata.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'py/makeqstrdata.py') diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py index c5ad708e89..f231a5d861 100644 --- a/py/makeqstrdata.py +++ b/py/makeqstrdata.py @@ -8,6 +8,9 @@ if platform.python_version_tuple()[0] == '2': elif platform.python_version_tuple()[0] == '3': from html.entities import codepoint2name +# add some custom names to map characters that aren't in HTML +codepoint2name[ord('.')] = 'dot' + # this must match the equivalent function in qstr.c def compute_hash(qstr): hash = 0 -- cgit v1.2.3