@@ -202,7 +202,7 @@ def list_replace_or_append(lst: list[N], old: N, new: N) -> None:
202202 old_foot_refs = list (is_autofootnote_ref .findall (self .node ))
203203 new_foot_refs = list (is_autofootnote_ref .findall (self .patch ))
204204 self .compare_references (old_foot_refs , new_foot_refs ,
205- __ ('inconsistent footnote references in translated message.' +
205+ __ ('inconsistent footnote references in translated message.'
206206 ' original: {0}, translated: {1}' ))
207207 old_foot_namerefs : dict [str , list [nodes .footnote_reference ]] = {}
208208 for r in old_foot_refs :
@@ -242,7 +242,7 @@ def update_refnamed_references(self) -> None:
242242 old_refs = list (is_refnamed_ref .findall (self .node ))
243243 new_refs = list (is_refnamed_ref .findall (self .patch ))
244244 self .compare_references (old_refs , new_refs ,
245- __ ('inconsistent references in translated message.' +
245+ __ ('inconsistent references in translated message.'
246246 ' original: {0}, translated: {1}' ))
247247 old_ref_names = [r ['refname' ] for r in old_refs ]
248248 new_ref_names = [r ['refname' ] for r in new_refs ]
@@ -267,7 +267,7 @@ def update_refnamed_footnote_references(self) -> None:
267267 new_foot_refs = list (is_refnamed_footnote_ref .findall (self .patch ))
268268 refname_ids_map : dict [str , list [str ]] = {}
269269 self .compare_references (old_foot_refs , new_foot_refs ,
270- __ ('inconsistent footnote references in translated message.' +
270+ __ ('inconsistent footnote references in translated message.'
271271 ' original: {0}, translated: {1}' ))
272272 for oldf in old_foot_refs :
273273 refname_ids_map .setdefault (oldf ["refname" ], []).append (oldf ["ids" ])
@@ -282,7 +282,7 @@ def update_citation_references(self) -> None:
282282 old_cite_refs = list (is_citation_ref .findall (self .node ))
283283 new_cite_refs = list (is_citation_ref .findall (self .patch ))
284284 self .compare_references (old_cite_refs , new_cite_refs ,
285- __ ('inconsistent citation references in translated message.' +
285+ __ ('inconsistent citation references in translated message.'
286286 ' original: {0}, translated: {1}' ))
287287 refname_ids_map : dict [str , list [str ]] = {}
288288 for oldc in old_cite_refs :
@@ -299,7 +299,7 @@ def update_pending_xrefs(self) -> None:
299299 old_xrefs = [* self .node .findall (addnodes .pending_xref )]
300300 new_xrefs = [* self .patch .findall (addnodes .pending_xref )]
301301 self .compare_references (old_xrefs , new_xrefs ,
302- __ ('inconsistent term references in translated message.' +
302+ __ ('inconsistent term references in translated message.'
303303 ' original: {0}, translated: {1}' ))
304304
305305 xref_reftarget_map : dict [tuple [str , str , str ] | None , dict [str , Any ]] = {}
0 commit comments