File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ def main(argv):
204
204
continue
205
205
print ("Inspecting %s" % src_path )
206
206
for pattern in list_code_files ():
207
- needs_block = pattern in list_code_files (JAVASCRIPT )
207
+ needs_block = pattern in list_code_files ([ JAVASCRIPT ] )
208
208
pattern = os .path .normpath (
209
209
os .path .join (mig_code_base , CODE_ROOT , pattern )
210
210
)
Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ def list_code_files(code_langs=[keyword_all]):
111
111
"""Get list of all code files."""
112
112
match = []
113
113
for lang in code_langs :
114
- if not lang in code_langs :
114
+ if not lang in LANG_MAP :
115
115
print ("Warning: no such code lang: %s" % lang )
116
- match += LANG_MAP .get (lang , [])
116
+ else :
117
+ match += LANG_MAP [lang ]
117
118
return match
You can’t perform that action at this time.
0 commit comments