better use None than False

This commit is contained in:
2015-08-22 03:51:17 +08:00
parent 5f7f5e0cc2
commit 5bab4b6a40

View File

@@ -233,7 +233,7 @@ class FccSubmitter(object):
# check devel project does not in the skip list
if devel_prj in self.skip_devel_project_list:
# check the except packages list
match = False
match = None
for elem in self.except_pkgs_list:
m = re.search(elem, package)
if m is not None:
@@ -246,7 +246,7 @@ class FccSubmitter(object):
pass
# check package does not in the skip list
match = False
match = None
for elem in self.skip_pkgs_list:
m = re.search(elem, package)
if m is not None: