????
| Current Path : /proc/self/root/proc/self/root/lib/python2.7/site-packages/pip/_internal/models/ |
| Current File : //proc/self/root/proc/self/root/lib/python2.7/site-packages/pip/_internal/models/link.pyc |
�
}�\]c @ s� d d l Z d d l Z d d l m Z d d l m Z m Z m Z m Z m
Z
d d l m Z d d l
m Z e r� d d l m Z m Z m Z m Z d d l m Z d d l m Z n d e f d
� � YZ d S( i����N( t parse( t WHEEL_EXTENSIONt path_to_urlt redact_password_from_urlt split_auth_from_netloct splitext( t KeyBasedCompareMixin( t MYPY_CHECK_RUNNING( t Optionalt Textt Tuplet Union( t HTMLPage( t Hashest Linkc B sa e Z d Z d d d d � Z d � Z d � Z e d � � Z e d � � Z e d � � Z
e d � � Z e d � � Z d � Z
e d
� � Z e d � � Z e j d � Z e d
� � Z e j d � Z e d � � Z e j d � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z e d � � Z d � Z RS( s? Represents a parsed link from a Package Index's simple URL
c C s� | j d � r t | � } n t j | � | _ | | _ | | _ | rN | n d | _ | | _ t
t | � j d | d t � d S( s`
:param url: url of the resource pointed to (href of the link)
:param comes_from: instance of HTMLPage where the link was found,
or string.
:param requires_python: String containing the `Requires-Python`
metadata field, specified in PEP 345. This may be specified by
a data-requires-python attribute in the HTML link tag, as
described in PEP 503.
:param yanked_reason: the reason the file has been yanked, if the
file has been yanked, or None if the file hasn't been yanked.
This is the value of the "data-yanked" attribute, if present, in
a simple repository HTML link. If the file has been yanked but
no reason was provided, this should be the empty string. See
PEP 592 for more information and the specification.
s \\t keyt defining_classN(
t
startswithR t urllib_parset urlsplitt _parsed_urlt _urlt
comes_fromt Nonet requires_pythont
yanked_reasont superR t __init__( t selft urlR R R ( ( s8 /tmp/pip-install-ewDPok/pip/pip/_internal/models/link.pyR s c C s\ | j r d | j } n d } | j rE d t | j � | j | f St t | j � � Sd S( Ns (requires-python:%s)t s %s (from %s)%s( R R R R t str( R t rp( ( s8 /tmp/pip-install-ewDPok/pip/pip/_internal/models/link.pyt __str__>