[diag] Enhance readability a bit
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 06 Dec 2017 16:17:51 +0100
changeset 2892 2cc69ec08306
parent 2891 38f882d0cee5
child 2893 4d7eeccd9f55
[diag] Enhance readability a bit
cubicweb_seda/entities/diag.py
--- a/cubicweb_seda/entities/diag.py	Wed Dec 06 16:17:28 2017 +0100
+++ b/cubicweb_seda/entities/diag.py	Wed Dec 06 16:17:51 2017 +0100
@@ -281,12 +281,14 @@
     'seda_temporal': 'seda_coverage_tab',
     'seda_writer_from': 'seda_agents_tab',
 }
+
 _AMBIGUOUS_RQL = ' UNION '.join(chain(
     ('(Any P, "{rtype}" GROUPBY P WHERE X {rtype} P, P container C, C eid %(c)s, '
      'NOT X user_cardinality "1" HAVING COUNT(X) > 1)'.format(rtype=rtype)
-     for rtype in _RTYPE_TO_TAB if rtype not in ('seda_binary_data_object',
-                                                 'seda_physical_data_object',
-                                                 'seda_related_transfer_reference')),
+     for rtype in _RTYPE_TO_TAB
+     if rtype not in ('seda_binary_data_object',
+                      'seda_physical_data_object',
+                      'seda_related_transfer_reference')),
     # we need another RQL for top level entities without container relation
     ('(Any P, "{rtype}" GROUPBY P WHERE X {rtype} P, P eid %(c)s, '
      'NOT X user_cardinality "1" HAVING COUNT(X) > 1)'.format(rtype=rtype)