diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-15 11:34:50 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-15 11:34:50 +0000 |
commit | a71c83a1d1aeca1d81d7c673929f8e836dec131e (patch) | |
tree | 5c49441e19c3feffbc792eec7ecfbc3ca3036830 /py/makeqstrdata.py | |
parent | 8ac72b9d000ecc48a2d558bdb7c73c7f98d4be62 (diff) | |
download | micropython-a71c83a1d1aeca1d81d7c673929f8e836dec131e.tar.gz micropython-a71c83a1d1aeca1d81d7c673929f8e836dec131e.zip |
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.
Diffstat (limited to 'py/makeqstrdata.py')
-rw-r--r-- | py/makeqstrdata.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |