def _generate_key_from_urls(urls):
    # urls may be a list of urls or a single string
    try:
        assert isinstance(urls, (list, basestring))
    except __HOLE__:
        assert isinstance(urls, (list, str))
    # We join the urls by the '^' character because it is not allowed in urls
    return '^'.join(urls if isinstance(urls, list) else [urls])
dataset/ETHPy150Open ros-infrastructure/rosdep/src/rosdep2/sources_list.py/_generate_key_from_urls