aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/depend.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/command/depend.py')
-rw-r--r--libbe/command/depend.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/libbe/command/depend.py b/libbe/command/depend.py
index 4cb0efd..fe02ce0 100644
--- a/libbe/command/depend.py
+++ b/libbe/command/depend.py
@@ -54,7 +54,7 @@ class Filter (object):
else:
target_bug = libbe.command.target.bug_target(bugdirs, bug)
if self.target in ['none', None]:
- if target_bug.summary != None:
+ if target_bug.summary is not None:
return False
else:
if target_bug.summary != self.target:
@@ -195,14 +195,14 @@ class Depend (libbe.command.Command):
])
def _run(self, **params):
- if params['repair'] == True and params['bug-id'] != None:
+ if params['repair'] == True and params['bug-id'] is not None:
raise libbe.command.UserError(
'No arguments with --repair calls.')
- if params['repair'] == False and params['bug-id'] == None:
+ if params['repair'] == False and params['bug-id'] is None:
raise libbe.command.UserError(
'Must specify either --repair or a BUG-ID')
- if params['tree-depth'] != None \
- and params['blocking-bug-id'] != None:
+ if params['tree-depth'] is not None \
+ and params['blocking-bug-id'] is not None:
raise libbe.command.UserError(
'Only one bug id used in tree mode.')
bugdirs = self._get_bugdirs()
@@ -223,7 +223,7 @@ class Depend (libbe.command.Command):
libbe.command.util.bugdir_bug_comment_from_user_id(
bugdirs, params['bug-id']))
- if params['tree-depth'] != None:
+ if params['tree-depth'] is not None:
dtree = DependencyTree(bugdirs, bugA, params['tree-depth'], filter)
if len(dtree.blocked_by_tree()) > 0:
print('%s blocked by:' % bugA.id.user(), file=self.stdout)
@@ -241,7 +241,7 @@ class Depend (libbe.command.Command):
% (' '*(depth), self.bug_string(node.bug, params))), file=self.stdout)
return 0
- if params['blocking-bug-id'] != None:
+ if params['blocking-bug-id'] is not None:
bugdirB,bugB,dummy_comment = (
libbe.command.util.bugdir_bug_comment_from_user_id(
bugdirs, params['blocking-bug-id']))