From 2cd2d188516475ddf256e6267cd82c495fb5c430 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sun, 3 Apr 2016 20:37:32 -0400 Subject: Fixed W503 flake8 warnings. --- django/db/migrations/graph.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'django/db/migrations/graph.py') diff --git a/django/db/migrations/graph.py b/django/db/migrations/graph.py index f324ba5551..6ba4ec129b 100644 --- a/django/db/migrations/graph.py +++ b/django/db/migrations/graph.py @@ -206,8 +206,7 @@ class MigrationGraph(object): """ roots = set() for node in self.nodes: - if (not any(key[0] == node[0] for key in self.node_map[node].parents) - and (not app or app == node[0])): + if not any(key[0] == node[0] for key in self.node_map[node].parents) and (not app or app == node[0]): roots.add(node) return sorted(roots) @@ -221,8 +220,7 @@ class MigrationGraph(object): """ leaves = set() for node in self.nodes: - if (not any(key[0] == node[0] for key in self.node_map[node].children) - and (not app or app == node[0])): + if not any(key[0] == node[0] for key in self.node_map[node].children) and (not app or app == node[0]): leaves.add(node) return sorted(leaves) -- cgit v1.2.1