From f52681860328ae0d8f40cdd310f21946c023d2ca Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Tue, 7 Jan 2020 17:53:06 +0100 Subject: [PATCH] core: remove qstr blacklist As its no longer needed. Mirrors micropython change a09fd0475. --- core/site_scons/site_tools/micropython/qstrdefs.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/core/site_scons/site_tools/micropython/qstrdefs.py b/core/site_scons/site_tools/micropython/qstrdefs.py index 5e4e1f2bb..8560ec73b 100644 --- a/core/site_scons/site_tools/micropython/qstrdefs.py +++ b/core/site_scons/site_tools/micropython/qstrdefs.py @@ -1,17 +1,14 @@ import re import sys -QSTR_BLACKLIST = set(['NULL', 'number_of']) - def process(source, target): - re_qstr = re.compile(r'MP_QSTR_[_a-zA-Z0-9]+') + re_qstr = re.compile(r"MP_QSTR_[_a-zA-Z0-9]+") for line in source: for match in re_qstr.findall(line): - name = match.replace('MP_QSTR_', '') - if name not in QSTR_BLACKLIST: - target.write('Q(%s)\n' % name) + name = match.replace("MP_QSTR_", "") + target.write("Q(%s)\n" % name) -if __name__ == '__main__': +if __name__ == "__main__": process(sys.stdin, sys.stdout)