(name_or_url)
Given a string or unicode instance, produce a new URL instance.

    The given string is parsed according to the RFC 1738 spec.  If an
    existing URL object is passed, just returns the object.
Given a string or unicode instance, produce a new URL instance.
Given a string or unicode instance produce a new URL instance .
def make_url(name_or_url):
    """Given a string or unicode instance, produce a new URL instance.

    The given string is parsed according to the RFC 1738 spec.  If an
    existing URL object is passed, just returns the object.
    """

    if isinstance(name_or_url, util.string_types):
        return _parse_rfc1738_args(name_or_url)
    else:
        return name_or_url
def make_url ( name_or_url ) : if isinstance ( name_or_url , util . string_types ) : return _parse_rfc1738_args ( name_or_url ) else : return name_or_url