From ddbcf442d76b1afdb7ca5044725cfb7dd8d8f5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 2 Dec 2014 12:55:27 +0100 Subject: [PATCH] Fix most flake8 errors review8771002 --- __init__.py | 4 ++-- address.py | 4 ++-- luhn.py | 4 ++-- party.py | 4 ++-- setup.py | 4 ++-- tests/__init__.py | 4 ++-- tests/test_party_siret.py | 42 +++++++++++++++++++-------------------- 7 files changed, 33 insertions(+), 33 deletions(-) diff --git a/__init__.py b/__init__.py index f375af153a..7323358441 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 .party import * diff --git a/address.py b/address.py index 81a024523b..0cea9b3a11 100644 --- a/address.py +++ b/address.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 from trytond.pool import PoolMeta diff --git a/luhn.py b/luhn.py index 47fa362355..af172593c2 100644 --- a/luhn.py +++ b/luhn.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. def validate(value): diff --git a/party.py b/party.py index 621377b2b0..993f3541ec 100644 --- a/party.py +++ b/party.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 from trytond.pool import PoolMeta diff --git a/setup.py b/setup.py index 221feb0ab0..4bf33620c0 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 1faa664529..ed1e93c098 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_party_siret import suite diff --git a/tests/test_party_siret.py b/tests/test_party_siret.py index 4ba83478f1..2a28376f28 100644 --- a/tests/test_party_siret.py +++ b/tests/test_party_siret.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 @@ -23,25 +23,25 @@ class PartySiretTestCase(unittest.TestCase): def test0010luhn(self): 'Test luhn' values = ( - (4111111111111111, True), - ('4111111111111111', True), - (4222222222222, True), - (378734493671000, True), - (5424000000000015, True), - (5555555555554444, True), - (1008, True), - ('0000001008', True), - ('000000001008', True), - (4012888888881881, True), - (1234567890123456789012345678909, True), - (4111111111211111, False), - (42222222222224, False), - (100, False), - ('100', False), - ('0000100', False), - ('abc', False), - (None, False), - (object(), False), + (4111111111111111, True), + ('4111111111111111', True), + (4222222222222, True), + (378734493671000, True), + (5424000000000015, True), + (5555555555554444, True), + (1008, True), + ('0000001008', True), + ('000000001008', True), + (4012888888881881, True), + (1234567890123456789012345678909, True), + (4111111111211111, False), + (42222222222224, False), + (100, False), + ('100', False), + ('0000100', False), + ('abc', False), + (None, False), + (object(), False), ) for value, test in values: self.assert_(luhn.validate(value) == test)