Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
èEYc@@sddlmZddlmZddlmZddddd	d
dgZdZdedeƒfd„ƒYZ	d„Z
d„Zd„ZdS(i(tabsolute_import(t
namedtuplei(tLocationParseErrortschemetauththosttporttpathtquerytfragmentthttpthttpstUrlcB@sweZdZdZdddddddd„Zed„ƒZed„ƒZed„ƒZ	ed„ƒZ
d„ZRS(	sÌ
    Datastructure for representing an HTTP URL. Used as a return value for
    :func:`parse_url`. Both the scheme and host are normalized as they are
    both case-insensitive according to RFC 3986.
    cC@s„|r#|jdƒr#d|}n|r8|jƒ}n|rY|tkrY|jƒ}ntt|ƒj||||||||ƒS(Nt/(t
startswithtlowertNORMALIZABLE_SCHEMEStsuperRt__new__(tclsRRRRRRR	((sE/home/tvault/.virtenv/lib/python2.7/site-packages/urllib3/util/url.pyRs
!cC@s|jS(s@For backwards-compatibility with urlparse. We're nice like that.(R(tself((sE/home/tvault/.virtenv/lib/python2.7/site-packages/urllib3/util/url.pythostname!scC@s6|jpd}|jdk	r2|d|j7}n|S(s)Absolute path including the query string.R
t?N(RRtNone(Rturi((sE/home/tvault/.virtenv/lib/python2.7/site-packages/urllib3/util/url.pytrequest_uri&scC@s$|jrd|j|jfS|jS(s(Network location including host and ports%s:%d(RR(R((sE/home/tvault/.virtenv/lib/python2.7/site-packages/urllib3/util/url.pytnetloc0s	c	C@sî|\}}}}}}}d}|dk	r>||d7}n|dk	r[||d7}n|dk	rt||7}n|dk	r—|dt|ƒ7}n|dk	r°||7}n|dk	rÍ|d|7}n|dk	rê|d|7}n|S(sˆ
        Convert self into a url

        This function should more or less round-trip with :func:`.parse_url`. The
        returned url may not be exactly the same as the url inputted to
        :func:`.parse_url`, but it should be equivalent by the RFC (e.g., urls
        with a blank port will have : removed).

        Example: ::

            >>> U = parse_url('http://google.com/mail/')
            >>> U.url
            'http://google.com/mail/'
            >>> Url('http', 'username:password', 'host.com', 80,
            ... '/path', 'query', 'fragment').url
            'http://username:password@host.com:80/path?query#fragment'
        ts://t@t:Rt#N(Rtstr(	RRRRRRRR	turl((sE/home/tvault/.virtenv/lib/python2.7/site-packages/urllib3/util/url.pyR 7s"

cC@s|jS(N(R (R((sE/home/tvault/.virtenv/lib/python2.7/site-packages/urllib3/util/url.pyt__str___s(N(t__name__t
__module__t__doc__t	__slots__RRtpropertyRRRR R!(((sE/home/tvault/.virtenv/lib/python2.7/site-packages/urllib3/util/url.pyRs

(cC@s£d}d}xV|D]N}|j|ƒ}|dkr:qn|dksR||kr|}|}qqW|dks}|dkrŠ|ddfS|| ||d|fS(sÒ
    Given a string and an iterable of delimiters, split on the first found
    delimiter. Return two split parts and the matched delimiter.

    If not found, then the first part is the full input string.

    Example::

        >>> split_first('foo/bar?baz', '?/=')
        ('foo', 'bar?baz', '/')
        >>> split_first('foo/bar?baz', '123')
        ('foo/bar?baz', '', None)

    Scales linearly with number of delims. Not ideal for large number of delims.
    iRiN(Rtfind(tstdelimstmin_idxt	min_delimtdtidx((sE/home/tvault/.virtenv/lib/python2.7/site-packages/urllib3/util/url.pytsplit_firstcs


c
C@s&|s
tƒSd}d}d}d}d}d}d}d|kr^|jddƒ\}}nt|dddgƒ\}}}	|	r’|	|}nd|kr¹|jddƒ\}}n|rô|ddkrô|jd	dƒ\}}|d	7}nd
|kr„|jd
dƒ\}
}|s'|
}n|r{|jƒsHt|ƒ‚nyt|ƒ}Wqtk
rwt|ƒ‚qXqšd}n|rš|rš|}n|s¼t|||||||ƒSd|krã|jddƒ\}}nd|kr
|jddƒ\}}nt|||||||ƒS(s:
    Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is
    performed to parse incomplete urls. Fields not provided will be None.

    Partly backwards-compatible with :mod:`urlparse`.

    Example::

        >>> parse_url('http://google.com/mail/')
        Url(scheme='http', host='google.com', port=None, path='/mail/', ...)
        >>> parse_url('google.com:80')
        Url(scheme=None, host='google.com', port=80, path=None, ...)
        >>> parse_url('/foo?bar')
        Url(scheme=None, host=None, port=None, path='/foo', query='bar', ...)
    s://iR
RRRit[t]RN(	RRtsplitR.trsplittisdigitRtintt
ValueError(R RRRRRR	Rtpath_tdelimt_host((sE/home/tvault/.virtenv/lib/python2.7/site-packages/urllib3/util/url.pyt	parse_url„sP!

	
	
	cC@s(t|ƒ}|jpd|j|jfS(s4
    Deprecated. Use :func:`parse_url` instead.
    R
(R9RRR(R tp((sE/home/tvault/.virtenv/lib/python2.7/site-packages/urllib3/util/url.pytget_hostásN(shttpshttpsN(
t
__future__RtcollectionsRt
exceptionsRt	url_attrsRRRR.R9R;(((sE/home/tvault/.virtenv/lib/python2.7/site-packages/urllib3/util/url.pyt<module>sU	!	]