From 95b744670ea35ce455fa25316966fc0a4cdcc176 Mon Sep 17 00:00:00 2001 From: Jennifer Chang Date: Tue, 12 Mar 2024 14:55:51 -0700 Subject: [PATCH] fixup: use "is" and "is not" when comparing with None values Co-authored-by: Jover Lee --- scripts/newreference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/newreference.py b/scripts/newreference.py index 4e6c3d4..063dafb 100644 --- a/scripts/newreference.py +++ b/scripts/newreference.py @@ -20,7 +20,7 @@ def new_reference(referencefile, outgenbank, outfasta, gene): # If user provides a --gene 'some name' is not found, print a warning and use the entire genome. # Otherwise do not print a warning. - if(gene != None and startofgene==None and endofgene==None): + if(gene is not None and startofgene is None and endofgene is None): print(f"ERROR: No '{gene}' was found under 'gene' or 'CDS' features in the GenBank file.", file=sys.stderr) sys.exit(1)