@@ -157,7 +157,7 @@ def write_doc(self, docname: str, doctree: nodes.document) -> None:
157157 if 'index' in self .env .config .gettext_additional_targets :
158158 # Extract translatable messages from index entries.
159159 for node , entries in traverse_translatable_index (doctree ):
160- for typ , msg , tid , main , key_ in entries :
160+ for typ , msg , _tid , _main , _key in entries :
161161 for m in split_index_msg (typ , msg ):
162162 if typ == 'pair' and m in pairindextypes .values ():
163163 # avoid built-in translated message was incorporated
@@ -227,7 +227,7 @@ def _collect_templates(self) -> Set[str]:
227227 template_files = set ()
228228 for template_path in self .config .templates_path :
229229 tmpl_abs_path = path .join (self .app .srcdir , template_path )
230- for dirpath , dirs , files in walk (tmpl_abs_path ):
230+ for dirpath , _dirs , files in walk (tmpl_abs_path ):
231231 for fn in files :
232232 if fn .endswith ('.html' ):
233233 filename = canon_path (path .join (dirpath , fn ))
@@ -247,7 +247,7 @@ def _extract_from_template(self) -> None:
247247 try :
248248 with open (template , encoding = 'utf-8' ) as f :
249249 context = f .read ()
250- for line , meth , msg in extract_translations (context ):
250+ for line , _meth , msg in extract_translations (context ):
251251 origin = MsgOrigin (template , line )
252252 self .catalogs ['sphinx' ].add (msg , origin )
253253 except Exception as exc :
0 commit comments