Ńň
iRec @ sý d d k Z d d k Z d d k Z d d k l Z d d k l Z d d k l Z l
Z
l Z d d k l
Z
d d k l Z d d k l Z l Z e oF d d k l Z l Z l Z l Z d d k l Z d d
k l Z n d e
f d YZ d S(
i˙˙˙˙N( t parse( t WHEEL_EXTENSION( t redact_auth_from_urlt split_auth_from_netloct splitext( t KeyBasedCompareMixin( t MYPY_CHECK_RUNNING( t path_to_urlt url_to_path( t Optionalt Textt Tuplet Union( t HTMLPage( t Hashest Linkc B sŁ e Z d Z d d d d d d g Z d" d" d" e d Z d Z d Z e 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 i d Z e d Z e i d Z e d Z e i d Z e d Z e d Z e d Z e d Z 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
t _parsed_urlt _urlt
comes_fromt requires_pythont
yanked_reasont cache_link_parsingc C s | i d o t | } n t i | | _ | | _ | | _ | o | n d | _ | | _ t
t | i 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.
:param cache_link_parsing: A flag that is used elsewhere to determine
whether resources retrieved from this link
should be cached. PyPI index urls should
generally have this set to False, for
example.
s \\t keyt defining_classN( t
startswithR t urllib_parset urlsplitR R R t NoneR R t superR t __init__R ( t selft urlR R R R ( ( sJ /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/models/link.pyR $ s c C sg | i o d i | i } n d } | i o d i t | i | i | St t | i Sd S( Ns (requires-python:{})t s {} (from {}){}( R t formatR R R t str( R t rp( ( sJ /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/models/link.pyt __str__S s
c C s
d i | S( Ns ( R! ( R ( ( sJ /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/models/link.pyt __repr___ s c C s | i S( N( R ( R ( ( sJ /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/models/link.pyR c s c C sr | i i d } t i | } | p t | i \ } } | St i | } | p t d i t
| S( Nt /s&