Skip to content

Commit

Permalink
Fixed a bug in the ManyToOneMatcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
wheerd committed Sep 3, 2017
1 parent 1cf6da4 commit 69da140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matchpy/matching/many_to_one.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def _match_commutative_operation(self, state: _State) -> Iterator[_State]:
self.constraints |= restore_constraints
self.patterns |= restore_patterns
self.substitution = substitution
self.subjects.append(subject)
self.subjects.appendleft(subject)

def _match_regular_operation(self, transition: _Transition) -> Iterator[_State]:
subject = self.subjects.popleft()
Expand Down

0 comments on commit 69da140

Please sign in to comment.