!`Nc@sJdZddlZddlZddlZdejjfdYZdS(sTXT-like base class.iNtTXTBasecBszeZdZdgZdZdedZdedZe eZdddZ ddZ e e Z dZ RS( sBase class for rdata that is like a TXT record @ivar strings: the text strings @type strings: list of string @see: RFC 1035tstringscCsBtt|j||t|tr4|g}n||_dS(N(tsuperRt__init__t isinstancetstrR(tselftrdclasstrdtypeR((s9/usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pyRs cKsJd}d}x7|jD],}|d|tjj|f7}d}qW|S(Nts%s"%s"t (Rtdnstrdatat _escapify(Rtorigint relativizetkwttxttprefixts((s9/usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pytto_text%s   cCsg}x|jj}|jr+Pn|jp@|jsXtjjdnt|j dkrtjjdn|j |j q t|dkrtjj n||||S(Nsexpected a stringisstring too longi( tgettunescapet is_eol_or_eoftis_quoted_stringt is_identifierR t exceptiont SyntaxErrortlentvaluetappendt UnexpectedEnd(tclsRRttokRRRttoken((s9/usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pyt from_text-s cCs\xU|jD]J}t|}|dks.tt|}|j||j|q WdS(Ni(RRtAssertionErrortchrtwrite(RtfiletcompressRRtltbyte((s9/usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pytto_wire>s    c Csg}x|dkrt||}|d7}|d8}||krTtjjn||||!j} ||7}||8}|j| q W||||S(Nii(tordR Rt FormErrortunwrapR( R RRtwiretcurrenttrdlenRRR)R((s9/usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pyt from_wireFs     cCst|j|jS(N(tcmpR(Rtother((s9/usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pyt_cmpVsN( t__name__t __module__t__doc__t __slots__RtNonetTrueRR#t classmethodR+R2R5(((s9/usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pyRs     (R8t dns.exceptionR t dns.rdatat dns.tokenizerR tRdataR(((s9/usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pyts