mirror of
https://github.com/TeachBooks/manual.git
synced 2026-11-12 22:35:51 +00:00
tiny change "is" to "==" because Tom doesn't like warnings
This commit is contained in:
parent
3779cb3cb7
commit
440e66a553
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue