Skip to content

Commit

Permalink
update approximate time filter to work with python2 and python3 (#1660)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosslannen authored and dirk-thomas committed Mar 15, 2019
1 parent 87eba68 commit 627b5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/message_filters/src/message_filters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def add(self, msg, my_queue, my_queue_index=None):
return
topic_stamps = sorted(topic_stamps, key=lambda x: x[1])
stamps.append(topic_stamps)
for vv in itertools.product(*[zip(*s)[0] for s in stamps]):
for vv in itertools.product(*[next(iter(zip(*s))) for s in stamps]):
vv = list(vv)
# insert the new message
if my_queue_index is not None:
Expand Down

0 comments on commit 627b5af

Please sign in to comment.