From 12297938626eaf4a1b34e3b7add12dd1b8a4e156 Mon Sep 17 00:00:00 2001 From: Valentin Chemiere Date: Thu, 19 Mar 2015 12:36:58 +0100 Subject: [PATCH] fix flake8 --- external_file_location/task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external_file_location/task.py b/external_file_location/task.py index 701e0827..8e2460df 100644 --- a/external_file_location/task.py +++ b/external_file_location/task.py @@ -53,8 +53,8 @@ class Task(models.Model): res = [] for cls in itersubclasses(AbstractTask): if cls._synchronize_type \ - and ('protocol' not in self._context - or cls._key == self._context['protocol']): + and ('protocol' not in self._context + or cls._key == self._context['protocol']): cls_info = (cls._key + '_' + cls._synchronize_type, cls._name + ' ' + cls._synchronize_type) res.append(cls_info)