From: Joseph Sutton Date: Tue, 29 Aug 2023 03:12:27 +0000 (+1200) Subject: buildtools: Use ‘is’ to compare with singletons X-Git-Tag: tevent-0.16.0~788 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6df81630af8e8d11711b0387baec8b84e0e529fc;p=thirdparty%2Fsamba.git buildtools: Use ‘is’ to compare with singletons Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 40c7b866fba..5f9d42075af 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -303,7 +303,7 @@ def SAMBA_LIBRARY(bld, libname, source, else: bundled_name = libname.replace('_', '-') else: - assert (private_library == True and realname is None) + assert (private_library is True and realname is None) bundled_name = PRIVATE_NAME(bld, libname.replace('_', '-')) vnum = None @@ -1058,7 +1058,7 @@ def copy_and_fix_perl_path(task): lineno = 0 for line in source_file: newline = line - if lineno == 0 and task.env["PERL_SPECIFIED"] == True and line[:2] == "#!": + if lineno == 0 and task.env["PERL_SPECIFIED"] is True and line[:2] == "#!": newline = replacement_shebang elif pattern in line: newline = line.replace(pattern, replacement)