@@ -143,7 +143,7 @@ def make_jinja_env(import_dir: Path) -> Environment:
143
143
144
144
args = parser .parse_args ()
145
145
146
- todo : List [Tuple [Path , str , Path ]] = []
146
+ items : List [Tuple [Path , str , Path ]] = []
147
147
need_classes = False
148
148
for output in args .output :
149
149
# We use # in the name to simulate folder hierarchy in the meson build
@@ -154,7 +154,7 @@ def make_jinja_env(import_dir: Path) -> Environment:
154
154
raise SystemExit (f"Unknown output, valid values: { ', ' .join (TARGETS .keys ())} " )
155
155
need_classes |= template_need_classes
156
156
template_name = f"{ name } .j2"
157
- todo .append ((output , template_name , template_home ))
157
+ items .append ((output , template_name , template_home ))
158
158
159
159
if need_classes :
160
160
if args .classes_sample :
@@ -168,8 +168,8 @@ def make_jinja_env(import_dir: Path) -> Environment:
168
168
path = args .input , build_config = BuildConfig (args .build_config ), filter_classes = filter_classes
169
169
)
170
170
171
- for todo_output , todo_template_name , todo_template_home in todo :
172
- env = make_jinja_env (todo_template_home )
173
- template = env .get_template (todo_template_name )
171
+ for item_output , item_template_name , item_template_home in items :
172
+ env = make_jinja_env (item_template_home )
173
+ template = env .get_template (item_template_name )
174
174
code = template .render (api = api )
175
- todo_output .write_text (code , encoding = "utf8" )
175
+ item_output .write_text (code , encoding = "utf8" )
0 commit comments