/usr/lib/python3.6/site-packages/dns/__pycache__
NameSizeModeActions
dnssec.cpython-36.opt-1.pyc108440644editdlrm
dnssec.cpython-36.pyc109150644editdlrm
e164.cpython-36.opt-1.pyc26630644editdlrm
e164.cpython-36.pyc26630644editdlrm
edns.cpython-36.opt-1.pyc44070644editdlrm
edns.cpython-36.pyc44070644editdlrm
entropy.cpython-36.opt-1.pyc32830644editdlrm
entropy.cpython-36.pyc32830644editdlrm
exception.cpython-36.opt-1.pyc36970644editdlrm
exception.cpython-36.pyc39080644editdlrm
flags.cpython-36.opt-1.pyc21700644editdlrm
flags.cpython-36.pyc21700644editdlrm
grange.cpython-36.opt-1.pyc9040644editdlrm
grange.cpython-36.pyc9620644editdlrm
hash.cpython-36.opt-1.pyc4750644editdlrm
hash.cpython-36.pyc4750644editdlrm
inet.cpython-36.opt-1.pyc23160644editdlrm
inet.cpython-36.pyc23160644editdlrm
ipv4.cpython-36.opt-1.pyc13580644editdlrm
ipv4.cpython-36.pyc13580644editdlrm
ipv6.cpython-36.opt-1.pyc29880644editdlrm
ipv6.cpython-36.pyc29880644editdlrm
message.cpython-36.opt-1.pyc326220644editdlrm
message.cpython-36.pyc326220644editdlrm
name.cpython-36.opt-1.pyc271260644editdlrm
name.cpython-36.pyc271260644editdlrm
namedict.cpython-36.opt-1.pyc28550644editdlrm
namedict.cpython-36.pyc28550644editdlrm
node.cpython-36.opt-1.pyc55340644editdlrm
node.cpython-36.pyc55340644editdlrm
opcode.cpython-36.opt-1.pyc20500644editdlrm
opcode.cpython-36.pyc20500644editdlrm
query.cpython-36.opt-1.pyc137480644editdlrm
query.cpython-36.pyc137480644editdlrm
rcode.cpython-36.opt-1.pyc24870644editdlrm
rcode.cpython-36.pyc24870644editdlrm
rdata.cpython-36.opt-1.pyc143550644editdlrm
rdata.cpython-36.pyc143550644editdlrm
rdataclass.cpython-36.opt-1.pyc25080644editdlrm
rdataclass.cpython-36.pyc25080644editdlrm
rdataset.cpython-36.opt-1.pyc95110644editdlrm
rdataset.cpython-36.pyc95500644editdlrm
rdatatype.cpython-36.opt-1.pyc45010644editdlrm
rdatatype.cpython-36.pyc45010644editdlrm
renderer.cpython-36.opt-1.pyc97400644editdlrm
renderer.cpython-36.pyc98270644editdlrm
resolver.cpython-36.opt-1.pyc357760644editdlrm
resolver.cpython-36.pyc357760644editdlrm
reversename.cpython-36.opt-1.pyc25930644editdlrm
reversename.cpython-36.pyc25930644editdlrm
rrset.cpython-36.opt-1.pyc52390644editdlrm
rrset.cpython-36.pyc52390644editdlrm
set.cpython-36.opt-1.pyc79030644editdlrm
set.cpython-36.pyc79030644editdlrm
tokenizer.cpython-36.opt-1.pyc145070644editdlrm
tokenizer.cpython-36.pyc145070644editdlrm
tsig.cpython-36.opt-1.pyc62090644editdlrm
tsig.cpython-36.pyc62090644editdlrm
tsigkeyring.cpython-36.opt-1.pyc10550644editdlrm
tsigkeyring.cpython-36.pyc10550644editdlrm
ttl.cpython-36.opt-1.pyc13200644editdlrm
ttl.cpython-36.pyc13200644editdlrm
update.cpython-36.opt-1.pyc70940644editdlrm
update.cpython-36.pyc70940644editdlrm
version.cpython-36.opt-1.pyc4500644editdlrm
version.cpython-36.pyc4500644editdlrm
wiredata.cpython-36.opt-1.pyc23210644editdlrm
wiredata.cpython-36.pyc23210644editdlrm
zone.cpython-36.opt-1.pyc301370644editdlrm
zone.cpython-36.pyc301370644editdlrm
_compat.cpython-36.opt-1.pyc12990644editdlrm
_compat.cpython-36.pyc12990644editdlrm
__init__.cpython-36.opt-1.pyc5850644editdlrm
__init__.cpython-36.pyc5850644editdlrm
Edit: /usr/lib/python3.6/site-packages/dns/__pycache__/edns.cpython-36.pyc (4407B)
3 ¢báW ã@s@dZdZGdd„deƒZGdd„deƒZiZdd„Zdd „Zd S) z EDNS Optionséc@sdeZdZdZdd„Zdd„Zedd„ƒZdd „Zd d „Z d d „Z dd„Z dd„Z dd„Z dd„ZdS)ÚOptionz*Base class for all EDNS option types. cCs ||_dS)z\Initialize an option. @param otype: The rdata type @type otype: int N)Úotype)Úselfr©rú/usr/lib/python3.6/edns.pyÚ__init__szOption.__init__cCst‚dS)z*Convert an option to wire format. N)ÚNotImplementedError)rÚfilerrrÚto_wire!szOption.to_wirecCst‚dS)a™Build an EDNS option object from wire format @param otype: The option type @type otype: int @param wire: The wire-format message @type wire: string @param current: The offset in wire of the beginning of the rdata. @type current: int @param olen: The length of the wire-format option data @type olen: int @rtype: dns.edns.Option instanceN)r)ÚclsrÚwireÚcurrentÚolenrrrÚ from_wire&s zOption.from_wirecCst‚dS)zžCompare an EDNS option with another option of the same type. Return < 0 if self < other, 0 if self == other, and > 0 if self > other. N)r)rÚotherrrrÚ_cmp5sz Option._cmpcCs,t|tƒsdS|j|jkrdS|j|ƒdkS)NFé)Ú isinstancerrr)rrrrrÚ__eq__<s   z Option.__eq__cCs,t|tƒsdS|j|jkrdS|j|ƒdkS)NFr)rrrr)rrrrrÚ__ne__Cs   z Option.__ne__cCs*t|tƒ s|j|jkrtS|j|ƒdkS)Nr)rrrÚNotImplementedr)rrrrrÚ__lt__Js  z Option.__lt__cCs*t|tƒ s|j|jkrtS|j|ƒdkS)Nr)rrrrr)rrrrrÚ__le__Ps  z Option.__le__cCs*t|tƒ s|j|jkrtS|j|ƒdkS)Nr)rrrrr)rrrrrÚ__ge__Vs  z Option.__ge__cCs*t|tƒ s|j|jkrtS|j|ƒdkS)Nr)rrrrr)rrrrrÚ__gt__\s  z Option.__gt__N)Ú__name__Ú __module__Ú __qualname__Ú__doc__rr Ú classmethodrrrrrrrrrrrrrs rcs<eZdZdZ‡fdd„Zdd„Zedd„ƒZdd „Z‡Z S) Ú GenericOptionzwGenerate Rdata Class This class is used for EDNS option types for which we have no better implementation. cstt|ƒj|ƒ||_dS)N)Úsuperr rÚdata)rrr")Ú __class__rrrkszGenericOption.__init__cCs|j|jƒdS)N)Úwriter")rr rrrr oszGenericOption.to_wirecCs||||||…ƒS)Nr)r rr r rrrrrrszGenericOption.from_wirecCs$|j|jkrdS|j|jkr dSdS)Nrééÿÿÿÿ)r")rrrrrrvs   zGenericOption._cmp) rrrrrr rrrÚ __classcell__rr)r#rr cs   r cCstj|ƒ}|dkrt}|S)N)Ú_type_to_classÚgetr )rr rrrÚget_option_classs r*cCst|ƒ}|j||||ƒS)auBuild an EDNS option object from wire format @param otype: The option type @type otype: int @param wire: The wire-format message @type wire: string @param current: The offset in wire of the beginning of the rdata. @type current: int @param olen: The length of the wire-format option data @type olen: int @rtype: dns.edns.Option instance)r*r)rr r rr rrrÚoption_from_wireˆs r+N)rZNSIDÚobjectrr r(r*r+rrrrÚs N