Viewing File: /usr/lib64/python2.7/site-packages/dns/rdtypes/IN/APL.pyo
ó
¢Sc @ s~ d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d e f d „ ƒ YZ d e j j
f d „ ƒ YZ d S( iÿÿÿÿNt APLItemc B s; e Z d Z d d d d g Z d „ Z d „ Z d „ Z RS( s' An APL list item.
@ivar family: the address family (IANA address family registry)
@type family: int
@ivar negation: is this item negated?
@type negation: bool
@ivar address: the address
@type address: string
@ivar prefix: the prefix length
@type prefix: int
t familyt negationt addresst prefixc C s( | | _ | | _ | | _ | | _ d S( N( R R R R ( t selfR R R R ( ( s8 /usr/lib64/python2.7/site-packages/dns/rdtypes/IN/APL.pyt __init__' s c C sA | j r# d | j | j | j f Sd | j | j | j f Sd S( Ns !%d:%s/%ss %d:%s/%s( R R R R ( R ( ( s8 /usr/lib64/python2.7/site-packages/dns/rdtypes/IN/APL.pyt __str__- s c C s. | j d k r0 t j j t j j | j ƒ } nB | j d k r` t j j t j j | j ƒ } n | j j d ƒ } d } xH t t | ƒ d d d ƒ D]* } | | t
d ƒ k r• | d } Pq• q• W| d | !} t | ƒ } | j rò | d O} n t j
d | j | j | ƒ } | j | ƒ | j | ƒ d S( Ni i t hex_codeci iÿÿÿÿi€ s !HBB( R t dnst inett inet_ptont AF_INETR t AF_INET6t decodet xranget lent chrR t structt packR t write( R t fileR t lastt it lt header( ( s8 /usr/lib64/python2.7/site-packages/dns/rdtypes/IN/APL.pyt to_wire3 s"