py/makeqstrdefs.py: Remove unused blacklist.
As of 7d58a197cf
, `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.
pull/1/head
parent
4ddd46e6cf
commit
a09fd04758
|
@ -12,10 +12,6 @@ import sys
|
||||||
import io
|
import io
|
||||||
import os
|
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):
|
def write_out(fname, output):
|
||||||
if output:
|
if output:
|
||||||
|
@ -46,7 +42,6 @@ def process_file(f):
|
||||||
continue
|
continue
|
||||||
for match in re_qstr.findall(line):
|
for match in re_qstr.findall(line):
|
||||||
name = match.replace('MP_QSTR_', '')
|
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)
|
write_out(last_fname, output)
|
||||||
|
|
Loading…
Reference in New Issue