Viewing File: /usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pyc
ó
!`Nc @ sJ d Z d d l Z d d l Z d d l Z d e j j f d „ ƒ YZ d S( s TXT-like base class.iÿÿÿÿNt TXTBasec B sz e Z d Z d g Z d „ Z d e d „ Z d e d „ Z e e ƒ Z d d d „ Z
d 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 sB t t | ƒ j | | ƒ t | t ƒ r4 | g } n | | _ d S( N( t superR t __init__t
isinstancet strR ( t selft rdclasst rdtypeR ( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pyR s c K sJ d } d } x7 | j D], } | d | t j j | ƒ f 7} d } q W| S( Nt s %s"%s"t ( R t dnst rdatat _escapify( R t origint
relativizet kwt txtt prefixt s( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pyt to_text% s
c C sÆ g } xŒ | j ƒ j ƒ } | j ƒ r+ Pn | j ƒ p@ | j ƒ sX t j j d ƒ ‚ n t | j ƒ d k r‚ t j j d ƒ ‚ n | j
| j ƒ q t | ƒ d k r¶ t j j ‚ n | | | | ƒ S( Ns expected a stringiÿ s string too longi ( t gett unescapet
is_eol_or_eoft is_quoted_stringt
is_identifierR t exceptiont SyntaxErrort lent valuet appendt
UnexpectedEnd( t clsR R t tokR R R t token( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pyt from_text- s c C s\ xU | j D]J } t | ƒ } | d k s. t ‚ t | ƒ } | j | ƒ | j | ƒ q
Wd S( Ni ( R R t AssertionErrort chrt write( R t filet compressR R t lt byte( ( s9 /usr/lib64/python2.7/site-packages/dns/rdtypes/txtbase.pyt to_wire>