Skip to content

Commit 459df7e

Browse files
committed
Rename the val parameter to name for clarity
1 parent aaeef8b commit 459df7e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gramps/gen/db/dummydb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,15 +1152,15 @@ def get_tag_from_handle(self, handle):
11521152
LOG.warning("handle %s does not exist in the dummy database", handle)
11531153
raise HandleError(f"Handle {handle} not found")
11541154

1155-
def get_tag_from_name(self, val):
1155+
def get_tag_from_name(self, name):
11561156
"""
11571157
Find a Tag in the database from the passed Tag name.
11581158
11591159
If no such Tag exists, None is returned.
11601160
"""
11611161
if not self.db_is_open:
11621162
LOG.debug("database is closed")
1163-
LOG.warning("tag name %s does not exist in the dummy database", val)
1163+
LOG.warning("tag name %s does not exist in the dummy database", name)
11641164

11651165
def get_tag_handles(self, sort_handles=False, locale=glocale):
11661166
"""

gramps/gen/proxy/proxybase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,12 +648,12 @@ def get_note_from_gramps_id(self, gramps_id):
648648
self.include_note, self.db.get_note_from_gramps_id(gramps_id)
649649
)
650650

651-
def get_tag_from_name(self, val):
651+
def get_tag_from_name(self, name):
652652
"""
653653
Finds a Tag in the database from the passed tag name.
654654
If no such Tag exists, None is returned.
655655
"""
656-
return self.gfilter(self.include_tag, self.db.get_tag_from_name(val))
656+
return self.gfilter(self.include_tag, self.db.get_tag_from_name(name))
657657

658658
def get_name_group_mapping(self, surname):
659659
"""

0 commit comments

Comments
 (0)