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/txtbase.pyc
�
�b�Wc@sfdZddlZddlZddlZddlZddlmZdejj	fd��YZ
dS(sTXT-like base class.i����N(tbinary_typetTXTBasecBseeZdZdgZd�Zded�Zeded��Z	ddd�Z
edd��ZRS(s�Base class for rdata that is like a TXT record

    @ivar strings: the text strings
    @type strings: list of string
    @see: RFC 1035tstringscCsBtt|�j||�t|t�r4|g}n||_dS(N(tsuperRt__init__t
isinstancetstrR(tselftrdclasstrdtypeR((s7/usr/lib/python2.7/site-packages/dns/rdtypes/txtbase.pyR$scKsJd}d}x7|jD],}|d|tjj|�f7}d}qW|S(Nts%s"%s"t (Rtdnstrdatat	_escapify(Rtorigint
relativizetkwttxttprefixts((s7/usr/lib/python2.7/site-packages/dns/rdtypes/txtbase.pytto_text*s 
c	Cs�g}x�|j�j�}|j�r+Pn|j�p@|j�sXtjjd��nt|j	�dkr�tjjd��n|j	}t
|t�r�|j|�q	|j|j
��q	Wt|�dkr�tjj�n||||�S(Nsexpected a stringi�sstring too longi(tgettunescapet
is_eol_or_eoftis_quoted_stringt
is_identifierRt	exceptiontSyntaxErrortlentvalueRRtappendtencodet
UnexpectedEnd(	tclsRR	ttokRRRttokenR((s7/usr/lib/python2.7/site-packages/dns/rdtypes/txtbase.pyt	from_text2s 	cCs\xU|jD]J}t|�}|dks.t�|jtjd|��|j|�q
WdS(Nis!B(RRtAssertionErrortwritetstructtpack(RtfiletcompressRRtl((s7/usr/lib/python2.7/site-packages/dns/rdtypes/txtbase.pytto_wireFs
c
Cs�g}x�|dkr�||}|d7}|d8}||krNtjj�n||||!j�}	||7}||8}|j|	�q	W||||�S(Nii(RRt	FormErrortunwrapR(
R"RR	twiretcurrenttrdlenRRR,R((s7/usr/lib/python2.7/site-packages/dns/rdtypes/txtbase.pyt	from_wireMs




N(t__name__t
__module__t__doc__t	__slots__RtNonetTrueRtclassmethodR%R-R3(((s7/usr/lib/python2.7/site-packages/dns/rdtypes/txtbase.pyRs		(R6R(t
dns.exceptionRt	dns.rdatat
dns.tokenizertdns._compatRR
tRdataR(((s7/usr/lib/python2.7/site-packages/dns/rdtypes/txtbase.pyt<module>s