From: Chris Lamb Date: Tue, 27 Oct 2009 10:36:26 +0000 (+0000) Subject: Compare with None using "is", not "==" X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17aa1e8a9ad7819e925e3b58e67eb099ef9c913c;p=dak Compare with None using "is", not "==" Signed-off-by: Chris Lamb --- diff --git a/daklib/utils.py b/daklib/utils.py index 429fd293..1c7aa802 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -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