From f4767780ad58f04789f733641ef68c30d0a0bdd2 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Tue, 7 Dec 2021 10:59:40 +0100 Subject: Don't use identity operator with a string literal Signed-off-by: Olivier Gayot --- gen_makefile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gen_makefile.py') diff --git a/gen_makefile.py b/gen_makefile.py index 2e8a330..5853222 100755 --- a/gen_makefile.py +++ b/gen_makefile.py @@ -38,7 +38,7 @@ class makefile_generator(): def append_rule(self, target, dep='', cmds=[]): print(target + ':', end='') - if dep is not '': + if dep != '': print(' ', end='') print(dep) -- cgit v1.2.3