]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
buildtools: Use ‘is’ to compare with singletons
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 29 Aug 2023 03:12:27 +0000 (15:12 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 30 Aug 2023 02:15:28 +0000 (02:15 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/wafsamba.py

index 40c7b866fbaf02622302e514bf5386eb52ad956c..5f9d42075af64f0af7a6d4ff5074722efabced95 100644 (file)
@@ -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)