[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master 16/29] Compare with None using "is", not "=="



Signed-off-by: Chris Lamb <lamby@debian.org>
---
 daklib/utils.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/daklib/utils.py b/daklib/utils.py
index 429fd29..1c7aa80 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
-- 
1.6.3.3



Reply to: