diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2019-09-26 20:41:41 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-10-04 17:18:56 +1000 |
commit | a09fd0475840ae6a24995ab7ab7955c88289817a (patch) | |
tree | 0a32eb7e6a4bcdb3b1e367eb0ab2e41f81743582 /py/makeqstrdefs.py | |
parent | 4ddd46e6cfd1f10efbd6fbbbc0fed520a1058045 (diff) | |
download | micropython-a09fd0475840ae6a24995ab7ab7955c88289817a.tar.gz micropython-a09fd0475840ae6a24995ab7ab7955c88289817a.zip |
py/makeqstrdefs.py: Remove unused blacklist.
As of 7d58a197cffa7c0dd3686402d2e381812bb8ddeb, `NULL` should no longer be
here because it's allowed (MP_QSTRnull took its place). This entry was
preventing the use of MP_QSTR_NULL to mean "NULL" (although this is not
currently used).
A blacklist should not be needed because it should be possible to intern
all strings.
Fixes issue #5140.
Diffstat (limited to 'py/makeqstrdefs.py')
-rw-r--r-- | py/makeqstrdefs.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/py/makeqstrdefs.py b/py/makeqstrdefs.py index 457bdeef65..209e7a132d 100644 --- a/py/makeqstrdefs.py +++ b/py/makeqstrdefs.py @@ -12,10 +12,6 @@ import sys import io import os -# Blacklist of qstrings that are specially handled in further -# processing and should be ignored -QSTRING_BLACK_LIST = set(['NULL', 'number_of']) - def write_out(fname, output): if output: @@ -46,8 +42,7 @@ def process_file(f): continue for match in re_qstr.findall(line): name = match.replace('MP_QSTR_', '') - if name not in QSTRING_BLACK_LIST: - output.append('Q(' + name + ')') + output.append('Q(' + name + ')') write_out(last_fname, output) return "" |