diff --git a/loopy/context_matching.py b/loopy/context_matching.py index 9158e533f3deb38294840a5e6d7cf57ce5fbc819..27a93c8168fdb70a2e30912bef37a4782953a03c 100644 --- a/loopy/context_matching.py +++ b/loopy/context_matching.py @@ -83,7 +83,8 @@ def parse_id_match(id_matches): id_matches = id_matches.split(",") if len(id_matches) > 1: - return AlternativeMatch(parse_id_match(im) for im in id_matches) + return AlternativeMatch([ + parse_id_match(im) for im in id_matches]) if len(id_matches) == 0: return AllMatch()