]> git.decadent.org.uk Git - dak.git/commitdiff
Compare with None using "is", not "=="
authorChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 10:36:26 +0000 (10:36 +0000)
committerChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 10:36:26 +0000 (10:36 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/utils.py

index 429fd293f8536dcd2ead2414a8ef74ce22fe1b91..1c7aa802692cba07fdf2ca2b9908b02457044b65 100755 (executable)
@@ -354,9 +354,10 @@ def check_dsc_files(dsc_filename, dsc=None, dsc_files=None):
     rejmsg = []
 
     # Parse the file if needed
-    if dsc == None:
+    if dsc is None:
         dsc = parse_changes(dsc_filename, signing_rules=1);
-    if dsc_files == None:
+
+    if dsc_files is None:
         dsc_files = build_file_list(dsc, is_a_dsc=1)
 
     # Ensure .dsc lists proper set of source files according to the format