def parse_url(url, encoding=None):
    return url if isinstance(url, urlparse.ParseResult) else \
        urlparse.urlparse(unicode_to_str(url, encoding))
Retrieves a header with the passed name.
dataset/ETHPy150Open wcong/ants/ants/utils/url.py/parse_url--crossover with--dataset/ETHPy150Open armet/python-armet/armet/http/response.py/Response.__getitem__