From 0f697b8f59ab7fada6ada714e758ea7ac9ee4647 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 24 Sep 2021 10:00:06 +0200 Subject: [PATCH 3/3] to fixup: use a generator to silence pylint --- wcs/formdef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcs/formdef.py b/wcs/formdef.py index ea6053ee..f780eebf 100644 --- a/wcs/formdef.py +++ b/wcs/formdef.py @@ -1679,7 +1679,7 @@ class FormDef(StorableObject): mapping['wf-%s' % old_status] = 'wf-%s' % new_status mapping['draft'] = 'draft' - if any([x[0] != x[1] for x in mapping.items()]): + if any(x[0] != x[1] for x in mapping.items()): # if there are status changes, update all formdatas (except drafts) if get_publisher().is_using_postgresql(): from . import sql -- 2.33.0