From 682034edd006e75923e9131ec0b26dae9150b38e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 2 Dec 2014 12:56:21 +0100 Subject: [PATCH] Fix most flake8 errors review8771002 --- __init__.py | 4 ++-- line.py | 6 +++--- setup.py | 4 ++-- tests/__init__.py | 4 ++-- tests/test_timesheet.py | 4 ++-- work.py | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/__init__.py b/__init__.py index d5d56ac3f8..d5e503a1cf 100644 --- a/__init__.py +++ b/__init__.py @@ -1,5 +1,5 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. from trytond.pool import Pool from .work import * diff --git a/line.py b/line.py index d24160b765..eb6020e60b 100644 --- a/line.py +++ b/line.py @@ -1,5 +1,5 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. from sql import Literal from sql.aggregate import Max, Sum from sql.conditionals import Coalesce @@ -7,7 +7,7 @@ from sql.functions import Extract from trytond.model import ModelView, ModelSQL, fields from trytond.wizard import Wizard, StateView, StateAction, Button -from trytond.pyson import Eval, PYSONEncoder, Date, Get +from trytond.pyson import Eval, PYSONEncoder, Date from trytond.transaction import Transaction from trytond.pool import Pool diff --git a/setup.py b/setup.py index f537bea42c..b3bb8e8803 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. from setuptools import setup import re diff --git a/tests/__init__.py b/tests/__init__.py index 11bca20c0d..2a3f7cb949 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,5 +1,5 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. from .test_timesheet import suite diff --git a/tests/test_timesheet.py b/tests/test_timesheet.py index fb76d8efe0..2a0a1ff46c 100644 --- a/tests/test_timesheet.py +++ b/tests/test_timesheet.py @@ -1,5 +1,5 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. import unittest import trytond.tests.test_tryton from trytond.tests.test_tryton import test_view, test_depends diff --git a/work.py b/work.py index 0300d96bd2..60bf1e00e8 100644 --- a/work.py +++ b/work.py @@ -1,5 +1,5 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. from sql import Literal from sql.aggregate import Sum