8889841có !`Nc@sJdZddlZddlZddlZdejjfd„ƒYZdS(sTXT-like base class.iÿÿÿÿNtTXTBasecBszeZdZdgZd„Zded„Zded„Ze eƒZddd„Z dd„Z e e ƒZ d„Z RS( 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((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   cCsÆg}xŒ|jƒjƒ}|jƒr+Pn|jƒp@|jƒsXtjjdƒ‚nt|j ƒdkr‚tjjdƒ‚n|j |j ƒq t|ƒdkr¶tjj ‚n||||ƒS(Nsexpected a stringiÿsstring 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 cCsJxC|jD]8}t|ƒ}t|ƒ}|j|ƒ|j|ƒq WdS(N(RRtchrtwrite(RtfiletcompressRRtltbyte((s9/usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pytto_wire>s    c Cs g}x‡|dkrt||ƒ}|d7}|d8}||krTtjj‚n||||!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|jƒS(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*R1R4(((s9/usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pyRs     (R7t dns.exceptionR t dns.rdatat dns.tokenizerR tRdataR(((s9/usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pyts