From a1636f1f651fb7a5df449ed38fafc5efda45598d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 24 Feb 2013 14:19:56 +0100 Subject: [PATCH] Fix flake8 --- move.py | 4 ++-- setup.py | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/move.py b/move.py index bda46070dd..ac7017bb88 100644 --- a/move.py +++ b/move.py @@ -24,8 +24,8 @@ class Move: 'FIFO quantity can not be greater than quantity!'), ] cls._error_messages.update({ - 'del_move_fifo': 'You can not delete move that is used '\ - 'for FIFO cost price!', + 'del_move_fifo': ('You can not delete move that is used ' + 'for FIFO cost price!'), }) @staticmethod diff --git a/setup.py b/setup.py index 4b991ce71f..8209ccbdc4 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_product_cost_fifo', version=info.get('version', '0.0.1'), @@ -36,15 +36,15 @@ setup(name='trytond_product_cost_fifo', 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.product_cost_fifo': '.'}, packages=[ 'trytond.modules.product_cost_fifo', ], package_data={ - 'trytond.modules.product_cost_fifo': info.get('xml', []) \ - + ['tryton.cfg', 'locale/*.po'], + 'trytond.modules.product_cost_fifo': (info.get('xml', []) + + ['tryton.cfg', 'locale/*.po']), }, classifiers=[ 'Development Status :: 5 - Production/Stable',