Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/hyperlink/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/hyperlink/__pycache__/hypothesis.cpython-310.pyc
o

G�_'%�@s�dZddlmZzddlZ[Wney!ddlmZdZYdSwddlm	Z
ddlmZm
Z
ddlmZmZdd	lmZdd
lmZmZmZmZmZmZmZmZddlmZdd
lmZm Z ddlm!Z!ddl"m#Z#m$Z$m%Z%m&Z&m'Z'ddl(m)Z)m*Z*m+Z,dZed�Z-eede-fge-fZ.ze/Wne0y�e1Z/Ynwdd�Z2da3e#d)dd��Z4e#d*dd��Z5e#d+dd��Z6e#d,dd ��Z7d!d"�Z8da9e#d#d$��Z:e#d%d&��Z;e#d'd(��Z<dS)-z
Hypothesis strategies.
�)�absolute_importN)�Tuple�)�reader)�dirname�join)�
ascii_letters�digits)�
maxunicode)�Callable�Iterable�List�Optional�Sequence�Text�TypeVar�cast)�open�)�
DecodedURL�
EncodedURL)�assume)�	composite�integers�lists�sampled_from�text)�	IDNAError�check_label�encode)�decoded_urls�encoded_urls�hostname_labels�	hostnames�	idna_text�paths�port_numbers�T.cCs�tswg}ttt�d�}t|��[}tdd�|D�dd�}t|�|D]A}|\}}}|dkr-q!|d�dd	�}t|�d	krB|�	|d�d
d�|D�\}	}
t
|	|
d	�D]}|tkrZn|�	t|��qRq!Wd�n1smwYd�|�atS)
z>
        Returns a string containing IDNA characters.
        zidna-tables-properties.csv.gzcss�|]}|�d�VqdS)�utf-8N)�decode)�.0�linerr�6/usr/lib/python3/dist-packages/hyperlink/hypothesis.py�	<genexpr>Q��z"idna_characters.<locals>.<genexpr>�,)�	delimiter�PVALIDr�-rcss�|]}t|d�VqdS)�N)�int)r*�irrr,r-br.N�)
�_idnaCharactersrr�__file__�	open_gzip�
csv_reader�next�split�len�append�ranger
�unichr)�result�dataFileName�dataFiler�row�codes�prop�description�startEnd�start�endr5rrr,�idna_characters?s8�
�
���
rKr6cCsjt�}|dks	J�|dur|dksJ�tt|t|||d���}zt|�W|Sty4td�Y|Sw)a(
        A strategy which generates IDNA-encodable text.

        @param min_size: The minimum number of characters in the text.
            C{None} is treated as C{0}.

        @param max_size: The maximum number of characters in the text.
            Use C{None} for an unbounded size.
        rN��min_size�max_size�alphabetF)rKrrr�idna_encoderr)�drawrMrNrOrArrr,r$os�
�
�r$FcCs$|rd}nd}tt|t|dd���S)z�
        A strategy which generates port numbers.

        @param allow_zero: Whether to allow port C{0} as a possible value.
        rri��)�	min_value�	max_value)rr4r)rQ�
allow_zerorRrrr,r&�sr&Tc	Cs�|r>tt|tddd���}z|�d�Wn;ty=t|�d��dtd�kr;|dd�}t|�d��dtd�ks(Ynwtt|tddtttd	�d
���}zt	|�W|St
yetd�Y|Sw)z�
        A strategy which generates host name labels.

        @param allow_idn: Whether to allow non-ASCII characters as allowed by
            internationalized domain names (IDNs).
        r�?�rMrN�ascii�punycodezxn--N���r2rLF)rrr$r�UnicodeEncodeErrorr=rrr	r�UnicodeErrorr)rQ�	allow_idn�labelrrr,r"�s6	������
�
�r"c	s�tt|t|d���fdd����g}|ttt|tt|d�ddd���7}tdd�|D��t|�dd	krM|d
d�}tdd�|D��t|�dd	ks6d�|�S)
aD
        A strategy which generates host names.

        @param allow_leading_digit: Whether to allow a leading digit in host
            names; they were not allowed prior to RFC 1123.

        @param allow_idn: Whether to allow non-ASCII characters as allowed by
            internationalized domain names (IDNs).
        )r\cs�rdS|dtvS)NTr)r	)�l��allow_leading_digitrr,�<lambda>�szhostnames.<locals>.<lambda>r�rVcss�|]}t|�VqdS)N)r=)r*r]rrr,r-�s�zhostnames.<locals>.<genexpr>�NrY�.)	rrr"�filterr
r�sumr=r)rQr`r\�labelsrr_r,r#�s.

����
���"
"�
r#cCs tdurdd�}d�|��atS)zH
        Returns a string containing valid URL path characters.
        Nc	ssN�tt�D]}t|�}|dvrqz|�d�Wn	ty Yqw|VqdS)Nz#/?r()r?r
r@rrZ)r5�crrr,�charss���zpath_characters.<locals>.charsr6)�_path_charactersr)rirrr,�path_characters�srkcCs$ttt|ttdt�d�dd���S)Nr)rMrO�
)rN)rr
rrrrk�rQrrr,r%s��r%cCsfttt|tdd���}tt|t���}ttt|t���}|dkr$d}ttt|t	d���|||d�S)z�
        A strategy which generates L{EncodedURL}s.
        Call the L{EncodedURL.to_uri} method on each URL to get an HTTP
        protocol-friendly URI.
        T)rTrN)�http�https)�scheme�host�port�path)
rrr4r&rr#rr%rr)rQrrrqrsrrr,r!#s�r!cCst|t���S)z�
        A strategy which generates L{DecodedURL}s.
        Call the L{EncodedURL.to_uri} method on each URL to get an HTTP
        protocol-friendly URI.
        )rr!rmrrr,r 9sr )rN)F)T)TT)=�__doc__�
__future__r�
hypothesis�ImportError�typingr�__all__�csvrr:�os.pathrr�stringrr	�sysr
rrr
rrrrr�gziprr9r6rrr�hypothesis.strategiesrrrrr�idnarrrrPr'�DrawCallabler@�	NameError�chrrKr7r$r&r"r#rkrjr%r!r rrrr,�<module>sZ
�(

�. -+
	


Spamworldpro Mini