tiny change "is" to "==" because Tom doesn't like warnings

This commit is contained in:
Robert Lanzafame 2024-12-06 09:27:49 +01:00 • committed by GitHub
parent 3779cb3cb7
commit 440e66a553
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,9 +56,9 @@ class LabelStyle(BaseLabelStyle):
# return "{}, n.d.".format(label)
def format_author_or_editor_names(self, persons):
if len(persons) is 1:
if len(persons)==1:
return _strip_nonalnum(persons[0].last_names)
elif len(persons) is 2:
elif len(persons)==2:
return "{} & {}".format(
_strip_nonalnum(persons[0].last_names),
_strip_nonalnum(persons[1].last_names))