diff --git a/gramps/gen/lib/citationbase.py b/gramps/gen/lib/citationbase.py index 14eefd28a..b765265b5 100644 --- a/gramps/gen/lib/citationbase.py +++ b/gramps/gen/lib/citationbase.py @@ -240,7 +240,7 @@ class CitationBase: if new_handle in self.citation_list: new_ref = new_handle n_replace = refs_list.count(old_handle) - for dummy_ix_replace in range(n_replace): + for _ in range(n_replace): idx = refs_list.index(old_handle) if new_ref: self.citation_list.pop(idx) diff --git a/gramps/gen/lib/family.py b/gramps/gen/lib/family.py index b68844bd0..ea477c37a 100644 --- a/gramps/gen/lib/family.py +++ b/gramps/gen/lib/family.py @@ -325,7 +325,7 @@ class Family( if new_handle in refs_list: new_ref = self.event_ref_list[refs_list.index(new_handle)] n_replace = refs_list.count(old_handle) - for dummy_ix_replace in range(n_replace): + for _ in range(n_replace): idx = refs_list.index(old_handle) self.event_ref_list[idx].ref = new_handle refs_list[idx] = new_handle @@ -343,7 +343,7 @@ class Family( if new_handle in refs_list: new_ref = self.child_ref_list[refs_list.index(new_handle)] n_replace = refs_list.count(old_handle) - for dummy_ix_replace in range(n_replace): + for _ in range(n_replace): idx = refs_list.index(old_handle) self.child_ref_list[idx].ref = new_handle refs_list[idx] = new_handle diff --git a/gramps/gen/lib/mediabase.py b/gramps/gen/lib/mediabase.py index 2e36872eb..dc7a596a4 100644 --- a/gramps/gen/lib/mediabase.py +++ b/gramps/gen/lib/mediabase.py @@ -160,7 +160,7 @@ class MediaBase: if new_handle in refs_list: new_ref = self.media_list[refs_list.index(new_handle)] n_replace = refs_list.count(old_handle) - for dummy_ix_replace in range(n_replace): + for _ in range(n_replace): idx = refs_list.index(old_handle) self.media_list[idx].ref = new_handle refs_list[idx] = new_handle diff --git a/gramps/gen/lib/notebase.py b/gramps/gen/lib/notebase.py index e324553af..ec7bac559 100644 --- a/gramps/gen/lib/notebase.py +++ b/gramps/gen/lib/notebase.py @@ -215,7 +215,7 @@ class NoteBase: if new_handle in self.note_list: new_ref = new_handle n_replace = refs_list.count(old_handle) - for dummy_ix_replace in range(n_replace): + for _ in range(n_replace): idx = refs_list.index(old_handle) if new_ref: self.note_list.pop(idx) diff --git a/gramps/gen/lib/person.py b/gramps/gen/lib/person.py index 7443cb8ad..13190fd05 100644 --- a/gramps/gen/lib/person.py +++ b/gramps/gen/lib/person.py @@ -424,7 +424,7 @@ class Person( if new_handle in refs_list: new_ref = self.event_ref_list[refs_list.index(new_handle)] n_replace = refs_list.count(old_handle) - for dummy_ix_replace in range(n_replace): + for _ in range(n_replace): idx = refs_list.index(old_handle) self.event_ref_list[idx].ref = new_handle refs_list[idx] = new_handle @@ -454,7 +454,7 @@ class Person( if new_handle in refs_list: new_ref = self.person_ref_list[refs_list.index(new_handle)] n_replace = refs_list.count(old_handle) - for dummy_ix_replace in range(n_replace): + for _ in range(n_replace): idx = refs_list.index(old_handle) self.person_ref_list[idx].ref = new_handle refs_list[idx] = new_handle diff --git a/gramps/gen/lib/src.py b/gramps/gen/lib/src.py index c52427d22..04337c1fe 100644 --- a/gramps/gen/lib/src.py +++ b/gramps/gen/lib/src.py @@ -442,7 +442,7 @@ class Source( if new_handle in refs_list: new_ref = self.reporef_list[refs_list.index(new_handle)] n_replace = refs_list.count(old_handle) - for dummy_ix_replace in range(n_replace): + for _ in range(n_replace): idx = refs_list.index(old_handle) self.reporef_list[idx].ref = new_handle refs_list[idx] = new_handle diff --git a/gramps/gen/lib/tagbase.py b/gramps/gen/lib/tagbase.py index eb777920b..27f871ab3 100644 --- a/gramps/gen/lib/tagbase.py +++ b/gramps/gen/lib/tagbase.py @@ -144,7 +144,7 @@ class TagBase: if new_handle in self.tag_list: new_ref = new_handle n_replace = refs_list.count(old_handle) - for dummy_ix_replace in range(n_replace): + for _ in range(n_replace): idx = refs_list.index(old_handle) if new_ref: self.tag_list.pop(idx)