Skip to content

Commit

Permalink
Fix the Tag.is_empty() method
Browse files Browse the repository at this point in the history
The `Tag.is_empty()` method was returning the inverse of the
expected value.

Fixes #12579.
  • Loading branch information
Nick-Hall committed Mar 22, 2024
1 parent 3902542 commit 23f08ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gramps/gen/lib/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def is_empty(self):
:returns: True if the Tag is empty
:rtype: bool
"""
return self.__name != ""
return not self.__name

def are_equal(self, other):
"""
Expand Down

0 comments on commit 23f08ac

Please sign in to comment.