From 759d10eb37e29511b8895e57dea57907feb798aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 5 Oct 2013 12:17:15 +0200 Subject: [PATCH] Fix flake8 --- tests/__init__.py | 2 ++ work.py | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index 3bc7b9094c..6ba206d2de 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -2,3 +2,5 @@ #this repository contains the full copyright notices and license terms. from .test_project_plan import suite + +__all__ = ['suite'] diff --git a/work.py b/work.py index 7d277b2a7b..e310303d6d 100644 --- a/work.py +++ b/work.py @@ -94,8 +94,6 @@ class Work: ''' Function to compute function fields ''' - cursor = Transaction().cursor - res = {} ids = [w.id for w in works] @@ -159,8 +157,6 @@ class Work: @classmethod def set_function_fields(cls, works, name, value): - pool = Pool() - fun_fields = ('actual_start_date', 'actual_finish_date', 'constraint_start_date', 'constraint_finish_date') db_fields = ('actual_start_time', 'actual_finish_time',