Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
 ‹EYc@sadZddlmZddlZddlZddlZddlZyddlZe	Z
Wnek
rueZ
nXddl
ZddlZddlmZmZmZmZy
ejZWn0ek
rïddejdƒ>ddZnXd	ZdZdZd
ZdZdejjfd
„ƒYZdejjfd„ƒYZ dejj!fd„ƒYZ"dejj!fd„ƒYZ#dejj$fd„ƒYZ%dejj!fd„ƒYZ&dejjfd„ƒYZ'dejj$fd„ƒYZ(dejj$fd„ƒYZ)dejj$fd„ƒYZ*d ejj$fd!„ƒYZ+d"e,fd#„ƒYZ-d$e-fd%„ƒYZ.d&e-fd'„ƒYZ/e0d(ƒZ1e.ƒZ2e/e	ee	ƒZ3e/e	eeƒZ4e/eeeƒZ5e/e	e	eƒZ6e3Z7ed)„Z8d*„Z9d+„Z:d,e,fd-„ƒYZ;e;d.gƒZ<e;gƒZ=e<e>d/„Z?e<e>d0„Z@d1„ZAdS(2sDNS Names.

@var root: The DNS root name.
@type root: dns.name.Name object
@var empty: The empty DNS name.
@type empty: dns.name.Name object
iÿÿÿÿ(tBytesIONi(tlongtbinary_typet	text_typetunichritPiiiit
EmptyLabelcBseZdZRS(sA DNS label is empty.(t__name__t
__module__t__doc__(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR4st	BadEscapecBseZdZRS(s8An escaped code in a text format of DNS name is invalid.(RRR	(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR
9st
BadPointercBseZdZRS(s=A DNS compression pointer points forward instead of backward.(RRR	(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR>stBadLabelTypecBseZdZRS(s2The label type in DNS name wire format is unknown.(RRR	(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyRCstNeedAbsoluteNameOrOrigincBseZdZRS(svAn attempt was made to convert a non-absolute name to
    wire when there was also a non-absolute (or missing) origin.(RRR	(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR
HstNameTooLongcBseZdZRS(s A DNS name is > 255 octets long.(RRR	(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyRNstLabelTooLongcBseZdZRS(s A DNS label is > 63 octets long.(RRR	(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyRSstAbsoluteConcatenationcBseZdZRS(s]An attempt was made to append anything other than the
    empty name to an absolute DNS name.(RRR	(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyRXstNoParentcBseZdZRS(sMAn attempt was made to get the parent of the root name
    or the empty name.(RRR	(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR^st
NoIDNA2008cBseZdZRS(sLIDNA 2008 processing was requested but the idna module is not
    available.(RRR	(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyRcst
IDNAExceptioncBs#eZdZedgƒZdZRS(s)IDNA 2008 processing raised an exception.tidna_exceptions+IDNA processing exception: {idna_exception}(RRR	tsettsupp_kwargstfmt(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyRist	IDNACodeccBs eZdZd„Zd„ZRS(s.Abstract base class for IDNA encoder/decoders.cCs
t‚dS(N(tNotImplementedError(tselftlabel((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytencodetscCs
t‚dS(N(R(RR((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytdecodews(RRR	RR(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyRps	t
IDNA2003CodeccBs eZdZd„Zd„ZRS(sIDNA 2003 encoder/decoder.cCsB|dkrdSytjj|ƒSWntk
r=t‚nXdS(Nt(t	encodingstidnatToASCIItUnicodeErrorR(RR((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR~s
cCs)|dkrdSttjj|ƒtƒS(NRu(t	_escapifyR R!t	ToUnicodetTrue(RR((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR†s(RRR	RR(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyRzs	t
IDNA2008CodeccBs;eZdZeeed„Zd„Zd„Zd„ZRS(sIDNA 2008 encoder/decoder.cCs||_||_||_dS(sÿInitialize the IDNA 2008 encoder/decoder.
        @param uts_46: If True, apply Unicode IDNA compatibility processing
        as described in Unicode Technical Standard #46
        (U{http://unicode.org/reports/tr46/}).  This parameter is only
        meaningful if IDNA 2008 is in use.  If False, do not apply
        the mapping.  The default is False
        @type uts_46: bool
        @param transitional: If True, use the "transitional" mode described
        in Unicode Technical Standard #46.  This parameter is only
        meaningful if IDNA 2008 is in use.  The default is False.
        @type transitional: bool
        @param allow_pure_ascii: If True, then a label which
        consists of only ASCII characters is allowed.  This is less strict
        than regular IDNA 2008, but is also necessary for mixed names,
        e.g. a name with starting with "_sip._tcp." and ending in an IDN
        suffixm which would otherwise be disallowed.  The default is False
        @type allow_pure_ascii: bool
        N(tuts_46ttransitionaltallow_pure_ascii(RR(R)R*((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__init__s		cCs+x$|D]}t|ƒdkrtSqWtS(Ni(tordtFalseR&(RRtc((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytis_all_ascii§s
cCs¥|dkrdS|jr5|j|ƒr5|jdƒStsDt‚ny5|jrktj|t|j	ƒ}ntj
|ƒSWn%tjk
r }td|ƒ‚nXdS(NRtasciiR(
R*R/Rthave_idna_2008RR(R!tuts46_remapR-R)talabelt	IDNAErrorR(RRte((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR­s
		cCs†|dkrdStst‚ny;|jrCtj|ttƒ}nttj|ƒtƒSWn%tj	k
r}t
d|ƒ‚nXdS(NRuR(R1RR(R!R2R-R$tulabelR&R4R(RRR5((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR»s		(RRR	R-R+R/RR(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR'‹s		s"().;\@$cCs2|s§d}t|tƒr*|jƒ}nxpt|ƒD]b}|tkr`|dt|ƒ7}q7|dkr‹|dkr‹|t|ƒ7}q7|d|7}q7W|jƒSd}t|tƒrË|jƒ}nx`|D]X}|dkrý|dkrý||7}qÒ|dkr||7}qÒ|d	t|ƒ7}qÒW|S(
s¸Escape the characters in label which need it.
    @param unicode_mode: escapify only special and whitespace (<= 0x20)
    characters
    @returns: the escaped string
    @rtype: stringRs\i is\%03duu uu\%03d(	t
isinstanceRRt	bytearrayt_escapedtchrRRR,(Rtunicode_modettextR.((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR$Ñs*



cCsÇt|ƒ}d}d}d}xh|D]`}t|ƒ}||d7}|dkrZt‚n|dkr{|dkr{|}n|d7}q%W|dkržt‚n|dkrÃ||dkrÃt‚ndS(s/Check for empty labels in the middle of a label sequence,
    labels that are too long, and for too many labels.
    @raises NameTooLong: the name as a whole is too long
    @raises EmptyLabel: a label is empty (i.e. the root label) and appears
    in a position other than the end of the label sequenceiiÿÿÿÿii?RiÿN(tlenRRR(tlabelstlttotaltitjRtll((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt_validate_labelsñs 
			cCs6t|tƒr|St|tƒr,|jƒSt‚dS(N(R7RRRt
ValueError(R((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt
_ensure_bytes
s

tNamecBsmeZdZdgZd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zed„Zed%d„Zd%d„Zd%d%d%d„Zd„Zd„Z d„Z!d„Z"d„Z#d „Z$d!„Z%d"„Z&d%e'd#„Z(d$„Z)RS(&sáA DNS name.

    The dns.name.Name class represents a DNS name as a tuple of labels.
    Instances of the class are immutable.

    @ivar labels: The tuple of labels in the name. Each label is a string of
    up to 63 octets.R>cCsOg|D]}t|ƒ^q}tt|ƒjdt|ƒƒt|jƒdS(s–Initialize a domain name from a list of labels.
        @param labels: the labels
        @type labels: any iterable whose values are strings
        R>N(RFtsuperRGt__setattr__ttupleRDR>(RR>tx((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR+scCstdƒ‚dS(Ns+object doesn't support attribute assignment(t	TypeError(Rtnametvalue((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyRI'scCs
t|jƒS(N(RGR>(R((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__copy__*scCsttj|j|ƒƒS(N(RGtcopytdeepcopyR>(Rtmemo((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__deepcopy__-scCsi|jd6S(NR>(R>(R((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__getstate__0scCs.tt|ƒjd|dƒt|jƒdS(NR>(RHRGRIRDR>(Rtstate((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__setstate__3scCs&t|jƒdko%|jddkS(sXIs the most significant label of this name the root label?
        @rtype: bool
        iiÿÿÿÿR(R=R>(R((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytis_absolute7scCs&t|jƒdko%|jddkS(s\Is this name wild?  (I.e. Is the least significant label '*'?)
        @rtype: bool
        it*(R=R>(R((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytis_wild>scCs]tdƒ}x@|jD]5}x,t|jƒƒD]}||d>|7}q/WqWt|tƒS(sHReturn a case-insensitive hash of the name.
        @rtype: int
        ii(RR>R8tlowertinttmaxint(RthRR.((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__hash__Es
c
Cs¨|jƒ}|jƒ}||krG|r7tddfStddfSnt|jƒ}t|jƒ}||}|dkr„|}n|}d}d}	t}
xÆ|dkrd|d8}|d8}|d8}|j|jƒ}|j|jƒ}||kr#d}|	dkrt}
n|
||	fS||krWd}|	dkrJt}
n|
||	fS|	d7}	qŸW|}|dkr€t}
n|dkr•t}
nt}
|
||	fS(s²Compare two names, returning a 3-tuple (relation, order, nlabels).

        I{relation} describes the relation ship between the names,
        and is one of: dns.name.NAMERELN_NONE,
        dns.name.NAMERELN_SUPERDOMAIN, dns.name.NAMERELN_SUBDOMAIN,
        dns.name.NAMERELN_EQUAL, or dns.name.NAMERELN_COMMONANCESTOR

        I{order} is < 0 if self < other, > 0 if self > other, and ==
        0 if self == other.  A relative name is always less than an
        absolute name.  If both names have the same relativity, then
        the DNSSEC order relation is used to order them.

        I{nlabels} is the number of significant labels that the two names
        have in common.
        iiiÿÿÿÿ(	RWt
NAMERELN_NONER=R>RZtNAMERELN_COMMONANCESTORtNAMERELN_SUPERDOMAINtNAMERELN_SUBDOMAINtNAMERELN_EQUAL(
Rtothertsabstoabstl1tl2tldiffR?tordertnlabelstnamerelntlabel1tlabel2((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytfullcomparePsN

	


	
	
		cCs8|j|ƒ\}}}|tks0|tkr4tStS(soIs self a subdomain of other?

        The notion of subdomain includes equality.
        @rtype: bool
        (RoRbRcR&R-(RRdtnrtotnl((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytis_subdomainscCs8|j|ƒ\}}}|tks0|tkr4tStS(sqIs self a superdomain of other?

        The notion of subdomain includes equality.
        @rtype: bool
        (RoRaRcR&R-(RRdRpRqRr((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytis_superdomain™scCs&tg|jD]}|jƒ^q
ƒS(sˆReturn a name which is equal to the current name, but is in
        DNSSEC canonical form.
        @rtype: dns.name.Name object
        (RGR>RZ(RRK((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytcanonicalize¥scCs.t|tƒr&|j|ƒddkStSdS(Nii(R7RGRoR-(RRd((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__eq__­scCs.t|tƒr&|j|ƒddkStSdS(Nii(R7RGRoR&(RRd((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__ne__³scCs.t|tƒr&|j|ƒddkStSdS(Nii(R7RGRotNotImplemented(RRd((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__lt__¹scCs.t|tƒr&|j|ƒddkStSdS(Nii(R7RGRoRx(RRd((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__le__¿scCs.t|tƒr&|j|ƒddkStSdS(Nii(R7RGRoRx(RRd((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__ge__ÅscCs.t|tƒr&|j|ƒddkStSdS(Nii(R7RGRoRx(RRd((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__gt__ËscCsd|jƒdS(Ns
<DNS name t>(t__str__(R((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__repr__ÑscCs|jtƒjƒS(N(tto_textR-R(R((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR~ÔscCsŒt|jƒdkrdSt|jƒdkrE|jddkrEdS|rg|jƒrg|jd }n	|j}djtt|ƒƒ}|S(sÊConvert name to text format.
        @param omit_final_dot: If True, don't emit the final dot (denoting the
        root label) for absolute names.  The default is False.
        @rtype: string
        it@iRt.iÿÿÿÿ(R=R>RWtjointmapR$(Rtomit_final_dotR?ts((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR€×s(	cCs®t|jƒdkrdSt|jƒdkrE|jddkrEdS|rg|jƒrg|jd }n	|j}|dkr…t}ndjg|D]}|j|ƒ^q’ƒS(sËConvert name to Unicode text format.

        IDN ACE labels are converted to Unicode.

        @param omit_final_dot: If True, don't emit the final dot (denoting the
        root label) for absolute names.  The default is False.
        @type omit_final_dot: bool
        @param: idna_codec: IDNA encoder/decoder.  If None, the default IDNA
        2003
        encoder/decoder is used.
        @type idna_codec: dns.name.IDNA
        @rtype: string
        iu@iRu.iÿÿÿÿN(R=R>RWtNonet	IDNA_2003RƒR(RR…t
idna_codecR?RK((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt
to_unicodeés(		cCsª|jƒsV|dks%|jƒr.t‚nt|jƒ}|jt|jƒƒn	|j}g|D]1}tjdt|ƒt|ƒ|j	ƒƒ^qf}dj
|ƒS(sConvert name to a format suitable for digesting in hashes.

        The name is canonicalized and converted to uncompressed wire format.

        @param origin: If the name is relative and origin is not None, then
        origin will be appended to it.
        @type origin: dns.name.Name object
        @raises NeedAbsoluteNameOrOrigin: All names in wire format are
        absolute.  If self is a relative name, then an origin must be supplied;
        if it is missing, then this exception is raised
        @rtype: string
        s!B%dsRN(RWR‡R
tlistR>textendtstructtpackR=RZRƒ(RtoriginR>RKtdlabels((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt
to_digestables		;c
Cs¬|dkrtƒ}t}nt}|jƒsz|dksI|jƒrRt‚nt|jƒ}|jt|jƒƒn	|j}d}x|D]}t	||ƒ}|d7}|dk	rÎ|j
|ƒ}	nd}	|	dk	r
d|	}
tjd|
ƒ}|j
|ƒPq|dk	rSt|ƒdkrS|jƒ}	|	dkrS|	||<qSnt|ƒ}|j
tjd|ƒƒ|dkr|j
|ƒqqW|r¨|jƒSdS(sùConvert name to wire format, possibly compressing it.

        @param file: the file where the name is emitted (typically
        a BytesIO file).  If None, a string containing the wire name
        will be returned.
        @type file: file or None
        @param compress: The compression table.  If None (the default) names
        will not be compressed.
        @type compress: dict
        @param origin: If the name is relative and origin is not None, then
        origin will be appended to it.
        @type origin: dns.name.Name object
        @raises NeedAbsoluteNameOrOrigin: All names in wire format are
        absolute.  If self is a relative name, then an origin must be supplied;
        if it is missing, then this exception is raised
        iiiÀs!Hiÿ?s!BN(R‡RR&R-RWR
R‹R>RŒRGtgetRRŽtwriteR=ttelltgetvalue(
RtfiletcompressRtwant_returnR>RARtntposRNR†R?((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytto_wires@				



cCs
t|jƒS(s@The length of the name (in labels).
        @rtype: int
        (R=R>(R((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__len__UscCs|j|S(N(R>(Rtindex((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__getitem__\scCs
|j|ƒS(N(tconcatenate(RRd((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__add___scCs
|j|ƒS(N(t
relativize(RRd((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt__sub__bscCsŽt|jƒ}|dkr+|tjjfS||krGtjj|fS|dks_||krntdƒ‚nt|| ƒt||ƒfS(s(Split a name into a prefix and suffix at depth.

        @param depth: the number of labels in the suffix
        @type depth: int
        @raises ValueError: the depth was not >= 0 and <= the length of the
        name.
        @returns: the tuple (prefix, suffix)
        @rtype: tuple
        is0depth must be >= 0 and <= the length of the name(R=R>tdnsRMtemptyRERG(RtdepthR?((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytsplitescCsV|jƒr't|ƒdkr't‚nt|jƒ}|jt|jƒƒt|ƒS(sÍReturn a new name which is the concatenation of self and other.
        @rtype: dns.name.Name object
        @raises AbsoluteConcatenation: self is absolute and other is
        not the empty name
        i(RWR=RR‹R>RŒRG(RRdR>((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyRŸzs
	cCs8|dk	r0|j|ƒr0t|t|ƒ ƒS|SdS(s£If self is a subdomain of origin, return a new name which is self
        relative to origin.  Otherwise return self.
        @rtype: dns.name.Name object
        N(R‡RsRGR=(RR((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyR¡‡scCs!|jƒs|j|ƒS|SdS(sªIf self is a relative name, return a new name which is the
        concatenation of self and origin.  Otherwise return self.
        @rtype: dns.name.Name object
        N(RWRŸ(RR((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytderelativize’s
cCs1|r)|r|j|ƒS|j|ƒSn|SdS(sReturn a name with the relativity desired by the caller.  If
        origin is None, then self is returned.  Otherwise, if
        relativize is true the name is relativized, and if relativize is
        false the name is derelativized.
        @rtype: dns.name.Name object
        N(R¡R§(RRR¡((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytchoose_relativitys

cCs2|tks|tkr!t‚nt|jdƒS(sºReturn the parent of the name.
        @rtype: dns.name.Name object
        @raises NoParent: the name is either the root name or the empty name,
        and thus has no parent.
        i(trootR¤RRGR>(R((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytparent­s	N(*RRR	t	__slots__R+RIRORSRTRVRWRYR^RoRsRtRuRvRwRyRzR{R|RR~R-R€R‡RŠR‘R›RœRžR R¢R¦RŸR¡R§R&R¨Rª(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyRGsJ												=											8						
		Rc	Cswt|tƒstdƒ‚n|dkp6t|tƒsHtdƒ‚ng}d}t}d}d}|dkr{t}n|dkrd}n|r&|dkr¯tdgƒSx*|D]"}|rg|dkr|jƒrót|ƒ}|d7}qd||7}t}qØ|jƒst	‚n|d	9}|t|ƒ7}|d7}|d
krØt}|t
|ƒ7}qØq¶|dkr­t|ƒdkrŽt‚n|j
|j|ƒƒd}q¶|dkrÎt}d}d}q¶||7}q¶W|rët	‚nt|ƒdkr|j
|j|ƒƒq&|j
dƒnt|ƒdksH|ddkrm|dk	rm|jt|jƒƒnt|ƒS(s·Convert unicode text into a Name object.

    Labels are encoded in IDN ACE form.

    @param text: The text to convert into a name.
    @type text: Unicode string
    @param origin: The origin to append to non-absolute names.
    @type origin: dns.name.Name
    @param: idna_codec: IDNA encoder/decoder.  If None, the default IDNA 2003
    encoder/decoder is used.
    @type idna_codec: dns.name.IDNA
    @rtype: dns.name.Name object
    s0input to from_unicode() must be a unicode stringsorigin must be a Name or Noneuiu@u.Rii
iu。u.u。u\iÿÿÿÿN(u.u。u.u。(R7RRER‡RGR-RˆtisdigitR[R
RR=RtappendRR&RŒR‹R>(	R<RR‰R>RtescapingtedigitsR@R.((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pytfrom_unicode»sd		



		

				.c
Cst|tƒrt|||ƒSt|tƒs=tdƒ‚n|d
kpUt|tƒsgtdƒ‚ng}d}t}d}d}|dkršd}n|r<|dkr¹tdgƒSx?t|ƒD]1}t	j
d|ƒ}	|r|dkr(|	jƒrt|	ƒ}|d7}qŒ||	7}t}q÷|	jƒs=t
‚n|d	9}|t|	ƒ7}|d7}|d
kr÷t}|t	j
d|ƒ7}q÷qÆ|	dkrÌt|ƒdkr¶t‚n|j|ƒd}qÆ|	dkrít}d}d}qÆ||	7}qÆW|r
t
‚nt|ƒdkr,|j|ƒq<|jdƒnt|ƒdks^|ddkrƒ|d
k	rƒ|jt|jƒƒnt|ƒS(s~Convert text into a Name object.

    @param text: The text to convert into a name.
    @type text: string
    @param origin: The origin to append to non-absolute names.
    @type origin: dns.name.Name
    @param: idna_codec: IDNA encoder/decoder.  If None, the default IDNA 2003
    encoder/decoder is used.
    @type idna_codec: dns.name.IDNA
    @rtype: dns.name.Name object
    s%input to from_text() must be a stringsorigin must be a Name or NoneRiRR‚s!Bii
is\iÿÿÿÿN(R7RR°RRER‡RGR-R8RRŽR¬R[R
R=RR­R&RŒR‹R>(
R<RR‰R>RR®R¯R@R.tbyte_((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt	from_textsf
	


		

	
			.cCsrt|tƒstdƒ‚ntjj|ƒ}g}|}d}||}|d7}d}xö|dkrT|dkr»|j||||!jƒƒ||7}|dkr$||7}q$ni|dkr|d@d||}|dkrö|d7}n||krt‚n|}|d7}nt	‚||}|d7}|dkr_|d7}q_q_W|jdƒt
|ƒ|fS(	s^Convert possibly compressed wire format into a Name.
    @param message: the entire DNS message
    @type message: string
    @param current: the offset of the beginning of the name from the start
    of the message
    @type current: int
    @raises dns.name.BadPointer: a compression pointer did not point backwards
    in the message
    @raises dns.name.BadLabelType: an invalid label type was encountered.
    @returns: a tuple consisting of the name that was read and the number
    of bytes of the wire format message which were consumed reading it
    @rtype: (dns.name.Name object, int) tuple
    s*input to from_wire() must be a byte stringiii@iÀi?iR(R7RRER£twiredatat
maybe_wrapR­tunwrapRRRG(tmessagetcurrentR>tbiggest_pointerthopstcounttcused((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt	from_wireIs<



	



(BR	tioRRtsysRPtencodings.idnaR R!R&R1tImportErrorR-t
dns.exceptionR£tdns.wiredatat_compatRRRRR\tAttributeErrortcalcsizeR_RaRbRcR`t	exceptiontSyntaxErrorRR
t	FormErrorRRtDNSExceptionR
RRRRRRtobjectRRR'R8R9RˆtIDNA_2008_PracticaltIDNA_2008_UTS_46tIDNA_2008_StricttIDNA_2008_Transitionalt	IDNA_2008R$RDRFRGR©R¤R‡R°R²R¼(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/support/dns/name.pyt<module>sj


"

#
=	 		ÿ¦HF