diff --git a/__init__.py b/__init__.py index 16ad20cc08..b4dfb4034a 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 .company import * diff --git a/company.py b/company.py index c00ee6e609..0cfcaedebc 100644 --- a/company.py +++ b/company.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 copy from trytond.model import ModelView, ModelSQL, fields from trytond.wizard import Wizard, StateView, Button, StateTransition @@ -273,7 +273,7 @@ class Property: @classmethod def search(cls, domain, offset=0, limit=None, order=None, count=False, query=False): - if Transaction().user == 0 and not 'user' in Transaction().context: + if Transaction().user == 0 and 'user' not in Transaction().context: domain = ['AND', domain[:], ('company', '=', None)] return super(Property, cls).search(domain, offset=offset, limit=limit, order=order, count=count, query=query) diff --git a/cron.py b/cron.py index 35ceb00782..f4756bf4ec 100644 --- a/cron.py +++ b/cron.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 ModelSQL, fields from trytond.pool import Pool, PoolMeta from trytond.transaction import Transaction diff --git a/party.py b/party.py index 54440057ba..f6b20df0f1 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.pyson import Eval from trytond.pool import PoolMeta diff --git a/setup.py b/setup.py index 3001f8f10e..4101c520d4 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 962622c51d..899a23c9cb 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_company import suite diff --git a/tests/test_company.py b/tests/test_company.py index b7f5e3330e..a5cff5951d 100644 --- a/tests/test_company.py +++ b/tests/test_company.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 POOL, DB_NAME, USER, CONTEXT, test_view,\ diff --git a/tests/tools.py b/tests/tools.py index 8457bed0de..99219c194a 100644 --- a/tests/tools.py +++ b/tests/tools.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 proteus import Model, Wizard from proteus.config import get_config