Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use itertools.chain to fix python3 test failure #92

Merged
merged 2 commits into from
Mar 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/capabilities/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@

"""

import itertools
import os

from catkin_pkg.packages import find_packages
Expand Down Expand Up @@ -434,7 +435,8 @@ def names(self):
:returns: list of the names for all specs of all types
:rtype: :py:obj:`list` (:py:obj:`str`)
"""
return self.interfaces.keys() + self.semantic_interfaces.keys() + self.providers.keys()
return list(itertools.chain(
self.interfaces.keys(), self.semantic_interfaces.keys(), self.providers.keys()))

@property
def specs(self):
Expand Down