Skip to content

Commit d3f53d1

Browse files
committed
Ensure that all lefts are split on | and &
1 parent 13b424c commit d3f53d1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cylc/flow/graph_parser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,6 @@ def parse_graph(self, graph_string: str) -> None:
479479

480480
for pair in sorted(pairs, key=lambda p: str(p[0])):
481481
self._proc_dep_pair(pair, check_terminals, lefts, rights)
482-
483482
self.terminals = rights.difference(lefts)
484483
for right in self.terminals:
485484
left = check_terminals.get(right)
@@ -583,11 +582,11 @@ def _proc_dep_pair(
583582

584583
for left in lefts:
585584
# Extract information about all nodes on the left.
586-
587585
if left:
588586
info = self.__class__.REC_NODES.findall(left)
589587
expr = left
590-
_lefts.add(left)
588+
for _left in info:
589+
_lefts.add(''.join(_left))
591590

592591
else:
593592
# There is no left-hand-side task.

0 commit comments

Comments
 (0)