Skip to content

Commit

Permalink
fix multiple assignment on for
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoFelipe committed Jun 14, 2024
1 parent 46723f6 commit 2629397
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions capture/noworkflow/now/collection/prov_execution/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ def assign_single(self, activation, assign, target_info, depa, back):
if name:
activation.context[name] = eva
return 1

def assign_access(self, activation, assign, target_info, depa, back):
"""Create dependencies for assignment to subscript"""
code, value, access_depa, addr, value_dep, checkpoint = self._extract_assign_access(
Expand Down Expand Up @@ -1083,7 +1083,7 @@ def assign_multiple_apply(self, activation, assign, target_info, custom, back):
delta += self.assign(activation, assign.sub(val, adepa), subcomp, back + 1)

if starred is None:
return
return delta

star = subcomps[starred][0]
rdelta = -1
Expand All @@ -1103,7 +1103,7 @@ def assign_multiple_apply(self, activation, assign, target_info, custom, back):
for index in range(delta, len(assign_value) + rdelta + 1)
]

self.assign(activation, assign.sub(new_value, depas), star, back + 1)
return self.assign(activation, assign.sub(new_value, depas), star, back + 1)

def assign(self, activation, assign, target_expr, back=1):
"""Create dependencies"""
Expand Down

0 comments on commit 2629397

Please sign in to comment.