AlkantarClanX12

Your IP : 3.133.152.189


Current Path : /lib/python3.6/site-packages/dns/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/dns/__pycache__/flags.cpython-36.pyc

3

�b�Wh
�@s�dZdZdZdZdZdZdZdZdZeeeeeeed�Z	d	eiZ
ed
d�e	j�D��Z
edd�e
j�D��Zd
d�Zee
�Zee�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�ZdS)zDNS Message Flags.i�ii��� �)�QR�AA�TC�RD�RA�AD�CD�DOccs|]\}}||fVqdS)N�)�.0�x�yr
r
�/usr/lib/python3.6/flags.py�	<genexpr>3srccs|]\}}||fVqdS)Nr
)rrrr
r
rr5scCs t|j��}|j�|j�|S)N)�list�items�sort�reverse)�table�orderr
r
r�_order_flags8srcCs.d}|j�}x|D]}|||j�B}qW|S)N�)�split�upper)�textr�flags�tokens�tr
r
r�
_from_textCs

r!cCs6g}x&|D]\}}||@dkr
|j|�q
Wdj|�S)Nr� )�append�join)rrrZ
text_flags�k�vr
r
r�_to_textKs
r'cCs
t|t�S)zZConvert a space-separated list of flag text values into a flags
    value.
    @rtype: int)r!�_by_text)rr
r
r�	from_textSsr)cCst|tt�S)z]Convert a flags value into a space-separated list of flag text
    values.
    @rtype: string)r'�	_by_value�_flags_order)rr
r
r�to_text[sr,cCs
t|t�S)zdConvert a space-separated list of EDNS flag text values into a EDNS
    flags value.
    @rtype: int)r!�
_edns_by_text)rr
r
r�edns_from_textcsr.cCst|tt�S)zhConvert an EDNS flags value into a space-separated list of EDNS flag
    text values.
    @rtype: string)r'�_edns_by_value�_edns_flags_order)rr
r
r�edns_to_textksr1N)�__doc__rrrrr	r
rrr(r-�dictrr*r/rr+r0r!r'r)r,r.r1r
r
r
r�<module>s6