File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ def get_matches(regex_expr):
25
25
26
26
def print_cat (mode , cat , ranges ):
27
27
if mode == "range" :
28
- print ("const std::vector<std::pair<uint32_t, uint32_t>> unicode_ranges_{} = {{" .format (cat ))
28
+ print ("const std::vector<std::pair<uint32_t, uint32_t>> unicode_ranges_{} = {{" .format (cat )) # noqa: NP100
29
29
if mode == "map" :
30
- print ("const std::map<uint32_t, uint32_t> unicode_map_{} = {{" .format (cat ))
30
+ print ("const std::map<uint32_t, uint32_t> unicode_map_{} = {{" .format (cat )) # noqa: NP100
31
31
for i , values in enumerate (ranges ):
32
- end = ",\n " if (i % 4 == 3 or i + 1 == len (ranges )) else ", "
32
+ end = ",\n " if (i % 4 == 3 or i + 1 == len (ranges )) else ", "
33
33
values = ["0x%08X" % value for value in values ]
34
- print ("{" + ", " .join (values ) + "}" , end = end )
35
- print ("};" )
36
- print ("" )
34
+ print ("{" + ", " .join (values ) + "}" , end = end ) # noqa: NP100
35
+ print ("};" ) # noqa: NP100
36
+ print ("" ) # noqa: NP100
37
37
38
38
39
39
print_cat ("range" , "number" , get_matches (r'\p{N}' ))
You can’t perform that action at this time.
0 commit comments