@@ -143,7 +143,7 @@ def make_jinja_env(import_dir: Path) -> Environment:
143143
144144 args = parser .parse_args ()
145145
146- todo : List [Tuple [Path , str , Path ]] = []
146+ items : List [Tuple [Path , str , Path ]] = []
147147 need_classes = False
148148 for output in args .output :
149149 # 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:
154154 raise SystemExit (f"Unknown output, valid values: { ', ' .join (TARGETS .keys ())} " )
155155 need_classes |= template_need_classes
156156 template_name = f"{ name } .j2"
157- todo .append ((output , template_name , template_home ))
157+ items .append ((output , template_name , template_home ))
158158
159159 if need_classes :
160160 if args .classes_sample :
@@ -168,8 +168,8 @@ def make_jinja_env(import_dir: Path) -> Environment:
168168 path = args .input , build_config = BuildConfig (args .build_config ), filter_classes = filter_classes
169169 )
170170
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 )
174174 code = template .render (api = api )
175- todo_output .write_text (code , encoding = "utf8" )
175+ item_output .write_text (code , encoding = "utf8" )
0 commit comments