From 17aa1e8a9ad7819e925e3b58e67eb099ef9c913c Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Tue, 27 Oct 2009 10:36:26 +0000 Subject: [PATCH] Compare with None using "is", not "==" Signed-off-by: Chris Lamb --- daklib/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2