0003-to-fixup-use-a-generator-to-silence-pylint.patch
wcs/formdef.py | ||
---|---|---|
1679 | 1679 |
mapping['wf-%s' % old_status] = 'wf-%s' % new_status |
1680 | 1680 |
mapping['draft'] = 'draft' |
1681 | 1681 | |
1682 |
if any([x[0] != x[1] for x in mapping.items()]):
|
|
1682 |
if any(x[0] != x[1] for x in mapping.items()):
|
|
1683 | 1683 |
# if there are status changes, update all formdatas (except drafts) |
1684 | 1684 |
if get_publisher().is_using_postgresql(): |
1685 | 1685 |
from . import sql |
1686 |
- |