From b1d95270bc246ae6fb887b5b36afa2117ea74b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 2 Dec 2014 12:55:58 +0100 Subject: [PATCH] Fix most flake8 errors review8771002 --- __init__.py | 4 ++-- sale.py | 4 ++-- setup.py | 4 ++-- stock.py | 8 ++++---- tests/__init__.py | 4 ++-- tests/test_sale_shipment_cost.py | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/__init__.py b/__init__.py index d16e02a5bb..d27e065be5 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 .sale import * diff --git a/sale.py b/sale.py index 3158a2d57e..67c5f712c8 100644 --- a/sale.py +++ b/sale.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.model import fields from trytond.transaction import Transaction from trytond.pyson import Eval, Bool diff --git a/setup.py b/setup.py index 404f1dae34..d7527ce78a 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/stock.py b/stock.py index 9593f97d40..d1f615a35b 100644 --- a/stock.py +++ b/stock.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.model import fields from trytond.pyson import Eval, Bool from trytond.transaction import Transaction @@ -16,7 +16,7 @@ class ShipmentOut: }, depends=['state']) cost_currency = fields.Many2One('currency.currency', - 'Cost Currency', states={ + 'Cost Currency', states={ 'invisible': ~Eval('carrier'), 'required': Bool(Eval('carrier')), 'readonly': ~Eval('state').in_(['draft', 'waiting', 'assigned', @@ -26,7 +26,7 @@ class ShipmentOut: 'Cost Currency Digits'), 'on_change_with_cost_currency_digits') cost = fields.Numeric('Cost', - digits=(16, Eval('cost_currency_digits', 2)), states={ + digits=(16, Eval('cost_currency_digits', 2)), states={ 'invisible': ~Eval('carrier'), 'readonly': ~Eval('state').in_(['draft', 'waiting', 'assigned', 'packed']), diff --git a/tests/__init__.py b/tests/__init__.py index 5847e0b007..2b2fb9a78d 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_sale_shipment_cost import suite diff --git a/tests/test_sale_shipment_cost.py b/tests/test_sale_shipment_cost.py index 0f987b3cf1..7deaca2b55 100644 --- a/tests/test_sale_shipment_cost.py +++ b/tests/test_sale_shipment_cost.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 doctest import trytond.tests.test_tryton