File: //proc/3/root/usr/lib/python2.4/site-packages/dns/rdtypes/txtbase.pyc
mò
!`Nc @ sA d Z d k Z d k Z d k Z d e i i f d „ ƒ YZ d S( s TXT-like base class.Nt TXTBasec B sz t Z d Z d g Z d „ Z e e d „ Z e e d „ Z e e ƒ Z e e d „ Z
e d „ 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 1035t stringsc C sD t t | ƒ i | | ƒ t | t ƒ o
| g } n | | _ d S( N( t superR t selft __init__t rdclasst rdtypet
isinstanceR t str( R R R R ( ( t7 /usr/lib/python2.4/site-packages/dns/rdtypes/txtbase.pyR s
c K sJ d } d } x7 | i D], } | d | t i i | ƒ f 7} d } q W| S( Nt s %s"%s"t ( t txtt prefixR R t st dnst rdatat _escapify( R t origint
relativizet kwR R
R ( ( R t to_text% s
c C sÑ g } x• | i ƒ i ƒ } | i ƒ o Pn | i ƒ p
| i ƒ p t i i
d ƒ ‚ n t | i ƒ d j o t i i
d ƒ ‚ n | i
| i ƒ q Wt | ƒ d j o t i i ‚ n | | | | ƒ S( Ni s expected a stringiÿ s string too longi ( R t tokt gett unescapet tokent
is_eol_or_eoft is_quoted_stringt
is_identifierR t exceptiont SyntaxErrort lent valuet appendt
UnexpectedEndt clsR R ( R# R R R R R R R ( ( R t from_text- s
c C s^ xW | i D]L } t | ƒ } | d j p t ‚ t | ƒ } | i | ƒ | i | ƒ q
Wd S( Ni (
R R R R t lt AssertionErrort chrt bytet filet write( R R) t compressR R% R R( ( ( R t to_wire>