Skip to content

Commit 43e1bbb

Browse files
author
Jonas Krauss
committed
use is for checking on None value
1 parent cb1fca3 commit 43e1bbb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/impact/util_nodes.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -511,10 +511,10 @@ def INPUT_TYPES(s):
511511
def doit(self, string_list, prefix_all, postfix_all, restrict_to_tags, exclude_tags):
512512
# need to access as list due to INPUT_IS_LIST
513513
# some sanity checks and normalization for later processing
514-
if prefix_all[0] == None: prefix_all[0] = ""
515-
if postfix_all[0] == None: postfix_all[0] = ""
516-
if restrict_to_tags[0] == None: restrict_to_tags[0] = ""
517-
if exclude_tags[0] == None: exclude_tags[0] = ""
514+
if prefix_all[0] is None: prefix_all[0] = ""
515+
if postfix_all[0] is None: postfix_all[0] = ""
516+
if restrict_to_tags[0] is None: restrict_to_tags[0] = ""
517+
if exclude_tags[0] is None: exclude_tags[0] = ""
518518
if not isinstance(restrict_to_tags[0], list):
519519
restrict_to_tags[0] = restrict_to_tags[0].split(", ")
520520
if not isinstance(exclude_tags[0], list):

0 commit comments

Comments
 (0)