Skip to content

Commit

Permalink
Wrap filter call in list(). (#46)
Browse files Browse the repository at this point in the history
In python3 filter returns a generator, the other code assumes it is a list.
  • Loading branch information
iwanders committed Jan 31, 2020
1 parent 6f85c47 commit 09f8c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rqt_bag/src/rqt_bag/timeline_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def _trimmed_topic_name(self, topic_name):
# We need to trim the topic
trimmed = ''
split_name = topic_name.split('/')
split_name = filter(lambda a: a != '', split_name)
split_name = list(filter(lambda a: a != '', split_name))
# Save important last element of topic name provided it is small
popped_last = False
if self._qfont_width(split_name[-1]) < .5 * allowed_width:
Expand Down

0 comments on commit 09f8c14

Please sign in to comment.