From 440e66a553892eb67743376aed8eec1e2f505a9f Mon Sep 17 00:00:00 2001 From: Robert Lanzafame Date: Fri, 6 Dec 2024 09:27:49 +0100 Subject: [PATCH] tiny change "is" to "==" because Tom doesn't like warnings --- book/_ext/pybtexapastyle/labels/apa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/_ext/pybtexapastyle/labels/apa.py b/book/_ext/pybtexapastyle/labels/apa.py index 59176f3..3632dc6 100644 --- a/book/_ext/pybtexapastyle/labels/apa.py +++ b/book/_ext/pybtexapastyle/labels/apa.py @@ -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))