Fix flake8
This commit is contained in:
@@ -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_project_plan',
|
||||
version=info.get('version', '0.0.1'),
|
||||
@@ -36,16 +36,16 @@ setup(name='trytond_project_plan',
|
||||
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.project_plan': '.'},
|
||||
packages=[
|
||||
'trytond.modules.project_plan',
|
||||
'trytond.modules.project_plan.tests',
|
||||
],
|
||||
package_data={
|
||||
'trytond.modules.project_plan': info.get('xml', []) \
|
||||
+ ['tryton.cfg', 'locale/*.po'],
|
||||
'trytond.modules.project_plan': (info.get('xml', [])
|
||||
+ ['tryton.cfg', 'locale/*.po']),
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
|
||||
@@ -246,10 +246,10 @@ class Work:
|
||||
for fun_field, db_field in zip(fun_fields, db_fields):
|
||||
if fun_field == name:
|
||||
cls.write(works, {
|
||||
db_field: value \
|
||||
and datetime.datetime.combine(value,
|
||||
datetime.time()) \
|
||||
or None,
|
||||
db_field: (value
|
||||
and datetime.datetime.combine(value,
|
||||
datetime.time())
|
||||
or None),
|
||||
})
|
||||
break
|
||||
|
||||
@@ -348,7 +348,7 @@ class Work:
|
||||
mindate = lambda x, y: x and y and min(x, y) or x or y
|
||||
|
||||
# propagate constraint_start_time
|
||||
constraint_start = reduce(maxdate, (pred.early_finish_time \
|
||||
constraint_start = reduce(maxdate, (pred.early_finish_time
|
||||
for pred in self.predecessors), None)
|
||||
|
||||
if constraint_start is None and self.parent:
|
||||
@@ -429,7 +429,7 @@ class Work:
|
||||
parent = work
|
||||
|
||||
# propagate constraint_finish_time
|
||||
constraint_finish = reduce(mindate, (succ.late_start_time \
|
||||
constraint_finish = reduce(mindate, (succ.late_start_time
|
||||
for succ in self.successors), None)
|
||||
|
||||
if constraint_finish is None and self.parent:
|
||||
|
||||
Reference in New Issue
Block a user