GhostManSec
Server: Apache
System: Linux s323.xrea.com 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: moonarc (17751)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/dns/rdtypes/ANY/URI.pyo
�
�b�Wc@s`ddlZddlZddlZddlZddlmZdejjfd��YZ	dS(i����N(t	text_typetURIcBskeZdZdddgZd�Zd	ed�Zed	ed��Z	d	d	d�Z
ed	d��ZRS(
s�URI record

    @ivar priority: the priority
    @type priority: int
    @ivar weight: the weight
    @type weight: int
    @ivar target: the target host
    @type target: dns.name.Name object
    @see: draft-faltstrom-uri-13tprioritytweightttargetcCs�tt|�j||�||_||_t|�dkrRtjjd��nt	|t
�rs|j�|_n	||_dS(NisURI target cannot be empty(
tsuperRt__init__RRtlentdnst	exceptiontSyntaxErrort
isinstanceRtencodeR(tselftrdclasstrdtypeRRR((s7/usr/lib/python2.7/site-packages/dns/rdtypes/ANY/URI.pyR's		cKs d|j|j|jj�fS(Ns
%d %d "%s"(RRRtdecode(R
torigint
relativizetkw((s7/usr/lib/python2.7/site-packages/dns/rdtypes/ANY/URI.pytto_text2sc	Csz|j�}|j�}|j�j�}|j�p?|j�sWtjjd��n|j�||||||j	�S(NsURI target must be a string(
t
get_uint16tgettunescapetis_quoted_stringt
is_identifierRR	R
tget_eoltvalue(	tclsRRttokRRRRR((s7/usr/lib/python2.7/site-packages/dns/rdtypes/ANY/URI.pyt	from_text6s
cCs<tjd|j|j�}|j|�|j|j�dS(Ns!HH(tstructtpackRRtwriteR(R
tfiletcompressRttwo_ints((s7/usr/lib/python2.7/site-packages/dns/rdtypes/ANY/URI.pytto_wire@s
c
Cs�|dkr!tjjd��ntjd|||d!�\}}|d7}|d8}||||!}	||7}||||||	�S(NisURI RR is shorter than 5 octetss!HHi(RR	t	FormErrorRtunpack(
RRRtwiretcurrenttrdlenRRRR((s7/usr/lib/python2.7/site-packages/dns/rdtypes/ANY/URI.pyt	from_wireEs#


N(t__name__t
__module__t__doc__t	__slots__RtNonetTrueRtclassmethodRR%R+(((s7/usr/lib/python2.7/site-packages/dns/rdtypes/ANY/URI.pyRs
		(
Rt
dns.exceptionRt	dns.rdatatdns.nametdns._compatRtrdatatRdataR(((s7/usr/lib/python2.7/site-packages/dns/rdtypes/ANY/URI.pyt<module>s