From 7fb2b9dcf8dfc86a908ef2a4e3bccea2e30e7e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 24 Feb 2013 15:56:38 +0100 Subject: [PATCH] Fix flake8 --- sale.py | 5 ++--- setup.py | 14 +++++++------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/sale.py b/sale.py index 433d6eb38a..492454fa37 100644 --- a/sale.py +++ b/sale.py @@ -1,9 +1,8 @@ #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 Model, fields +from trytond.model import fields from trytond.pyson import Eval, Not, Equal, Or, Bool -from trytond.pool import Pool, PoolMeta +from trytond.pool import PoolMeta __all__ = ['Sale', 'SaleLine'] __metaclass__ = PoolMeta diff --git a/setup.py b/setup.py index f8922f8f99..88cf12275d 100644 --- a/setup.py +++ b/setup.py @@ -25,10 +25,10 @@ requires = [] for dep in info.get('depends', []): if not re.match(r'(ir|res|webdav)(\W|$)', dep): requires.append('trytond_%s >= %s.%s, < %s.%s' % - (dep, major_version, minor_version, major_version, - minor_version + 1)) + (dep, major_version, minor_version, major_version, + minor_version + 1)) requires.append('trytond >= %s.%s, < %s.%s' % - (major_version, minor_version, major_version, minor_version + 1)) + (major_version, minor_version, major_version, minor_version + 1)) setup(name='trytond_sale_price_list', version=info.get('version', '0.0.1'), @@ -36,16 +36,16 @@ setup(name='trytond_sale_price_list', long_description=read('README'), author='Tryton', url='http://www.tryton.org/', - download_url="http://downloads.tryton.org/" + \ - info.get('version', '0.0.1').rsplit('.', 1)[0] + '/', + download_url=("http://downloads.tryton.org/" + + info.get('version', '0.0.1').rsplit('.', 1)[0] + '/'), package_dir={'trytond.modules.sale_price_list': '.'}, packages=[ 'trytond.modules.sale_price_list', 'trytond.modules.sale_price_list.tests', ], package_data={ - 'trytond.modules.sale_price_list': info.get('xml', []) \ - + ['tryton.cfg', 'locale/*.po'], + 'trytond.modules.sale_price_list': (info.get('xml', []) + + ['tryton.cfg', 'locale/*.po']), }, classifiers=[ 'Development Status :: 5 - Production/Stable',