aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/diff.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/diff.py')
-rw-r--r--libbe/diff.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/libbe/diff.py b/libbe/diff.py
index 595d512..f7ddfbe 100644
--- a/libbe/diff.py
+++ b/libbe/diff.py
@@ -256,7 +256,7 @@ class DiffTree (libbe.util.tree.Tree):
pass
else:
self.join(root, parent, data_part)
- if data_part != None:
+ if data_part is not None:
depth += 1
for child in self:
root = child.report(root, self, depth)
@@ -264,7 +264,7 @@ class DiffTree (libbe.util.tree.Tree):
def make_root(self):
return []
def join(self, root, parent, data_part):
- if data_part != None:
+ if data_part is not None:
root.append(data_part)
def data_part(self, depth, indent=True):
if self.data is None:
@@ -452,9 +452,9 @@ class Diff (object):
if BUGDIR_TYPE_ALL in bugdir_types \
or BUGDIR_TYPE_MOD in bugdir_types \
or uuid in subscribed_bugs:
- if old_bug.storage != None and old_bug.storage.is_readable():
+ if old_bug.storage is not None and old_bug.storage.is_readable():
old_bug.load_comments()
- if new_bug.storage != None and new_bug.storage.is_readable():
+ if new_bug.storage is not None and new_bug.storage.is_readable():
new_bug.load_comments()
if old_bug != new_bug:
modified.append((old_bug, new_bug))
@@ -534,7 +534,7 @@ class Diff (object):
for p in properties]
return self._attribute_changes(old, new, attributes)
def _bugdir_attribute_changes(self):
- return self._settings_properties_attribute_changes( \
+ return self._settings_properties_attribute_changes(
self.old_bugdir, self.new_bugdir)
def _bug_attribute_changes(self, old, new):
return self._settings_properties_attribute_changes(old, new)
@@ -558,8 +558,8 @@ class Diff (object):
root = self._cached_full_report
bugdir_types = [s.type for s in subscriptions if s.id == BUGDIR_ID]
subscribed_bugs = [s.id for s in subscriptions
- if BUG_TYPE_ALL.has_descendant( \
- s.type, match_self=True)]
+ if BUG_TYPE_ALL.has_descendant(
+ s.type, match_self=True)]
selected_by_bug = [node.name
for node in root.child_by_path('bugdir/bugs')]
if BUGDIR_TYPE_ALL in bugdir_types: