Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/dns/__pycache__/tokenizer.cpython-312.pyc

251 lines
26 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
g<> i<>[<00><00><><00>dZddlZddlZddlmZmZmZddlZddl Zddl
Zhd<04>Z dhZ dZ dZdZdZd Zd
Zd ZGd <0C>d ej(j*<00>ZGd<0E>d<0F>ZGd<10>d<11>Zy)zTokenize DNS zone file format<61>N)<03>Any<6E>List<73>Tuple><00> <09>
<EFBFBD> <20>"<22>(<28>)<29>;r <00><00><00><00><00><00>c<00><00>eZdZdZy)<03>UngetBufferFullzDAn attempt was made to unget a token when the unget buffer was full.N)<04>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F><00><00><E:\Project\pygoedge\.venv\Lib\site-packages\dns/tokenizer.pyrr(s<00><00>Nrrc
<00><><00>eZdZdZ ddededededzfd<07>Zdefd <09>Z defd
<EFBFBD>Z
defd <0B>Z defd <0C>Z defd <0A>Z defd<0E>Zdefd<0F>Zdefd<10>Zd<11>Zd<12>Zd<13>Zdd<14>Zdd<15>Zy)<18>Tokenz<6E>A DNS zone file format token.
ttype: The token type
value: The token value
has_escape: Does the token value contain escapes?
N<>ttype<70>value<75>
has_escape<EFBFBD>commentc<00><<00>||_||_||_||_y)zInitialize a token instance.N)rrr r!)<05>selfrrr r!s r<00>__init__zToken.__init__4s <00><00><1B><04>
<EFBFBD><1A><04>
<EFBFBD>$<24><04><0F><1E><04> r<00>returnc<00>(<00>|jtk(S<00>N)r<00>EOF<4F>r#s r<00>is_eofz Token.is_eofB<00><00><00><13>z<EFBFBD>z<EFBFBD>S<EFBFBD> <20> rc<00>(<00>|jtk(Sr')r<00>EOLr)s r<00>is_eolz Token.is_eolEr+rc<00>(<00>|jtk(Sr')r<00>
WHITESPACEr)s r<00> is_whitespacezToken.is_whitespaceH<00><00><00><13>z<EFBFBD>z<EFBFBD>Z<EFBFBD>'<27>'rc<00>(<00>|jtk(Sr')r<00>
IDENTIFIERr)s r<00> is_identifierzToken.is_identifierKr2rc<00>(<00>|jtk(Sr')r<00> QUOTED_STRINGr)s r<00>is_quoted_stringzToken.is_quoted_stringNs<00><00><13>z<EFBFBD>z<EFBFBD>]<5D>*<2A>*rc<00>(<00>|jtk(Sr')r<00>COMMENTr)s r<00>
is_commentzToken.is_commentQs<00><00><13>z<EFBFBD>z<EFBFBD>W<EFBFBD>$<24>$rc<00>(<00>|jtk(Sr')r<00> DELIMITERr)s r<00> is_delimiterzToken.is_delimiterTs<00><00><13>z<EFBFBD>z<EFBFBD>Y<EFBFBD>&<26>&rc<00>R<00>|jtk(xs|jtk(Sr')rr-r(r)s r<00> is_eol_or_eofzToken.is_eol_or_eofWs<00><00><13>z<EFBFBD>z<EFBFBD>S<EFBFBD> <20>5<>D<EFBFBD>J<EFBFBD>J<EFBFBD>#<23>$5<>5rc<00><><00>t|t<00>sy|j|jk(xr|j|jk(S)NF<4E><04>
isinstancerrr<00>r#<00>others r<00>__eq__z Token.__eq__Zs4<00><00><19>%<25><15>'<27><18><13>z<EFBFBD>z<EFBFBD>U<EFBFBD>[<5B>[<5B>(<28>F<>T<EFBFBD>Z<EFBFBD>Z<EFBFBD>5<EFBFBD>;<3B>;<3B>-F<>Frc<00><><00>t|t<00>sy|j|jk7xs|j|jk7S)NTrBrDs r<00>__ne__z Token.__ne___s4<00><00><19>%<25><15>'<27><17><13>z<EFBFBD>z<EFBFBD>U<EFBFBD>[<5B>[<5B>(<28>E<>D<EFBFBD>J<EFBFBD>J<EFBFBD>%<25>+<2B>+<2B>,E<>Erc<00>:<00>|j<00>d|j<00>d<02>S)N<> "r )rrr)s r<00>__str__z Token.__str__ds<00><00><16>*<2A>*<2A><1C>R<EFBFBD><04>
<EFBFBD>
<EFBFBD>|<7C>1<EFBFBD>-<2D>-rc<00>@<00>|js|Sd}t|j<00>}d}||k<00>r\|j|}|dz }|dk(<00>r6||k\rtjj
<00>|j|}|dz }|j <00>r<>||k\rtjj
<00>|j|}|dz }||k\rtjj
<00>|j|}|dz }|j <00>r|j <00>stjj<00>t|<04>dzt|<05>dzzt|<06>z}|dkDrtjj<00>t|<07>}||z }||kr<02><01>\t|j|<01>S)N<>rr <00>\<5C>d<00>
<00><>) r <00>lenr<00>dns<6E> exception<6F> UnexpectedEnd<6E>isdigit<69> SyntaxError<6F>int<6E>chrrr<00>r#<00> unescaped<65>l<>i<>c<>c2<63>c3<63> codepoints r<00>unescapezToken.unescapegsb<00><00><13><EFBFBD><EFBFBD><17>K<EFBFBD><16> <09> <0F><04>
<EFBFBD>
<EFBFBD>O<EFBFBD><01> <0A><01><0F>!<21>e<EFBFBD><14>
<EFBFBD>
<EFBFBD>1<EFBFBD> <0A>A<EFBFBD> <0A><11>F<EFBFBD>A<EFBFBD><10>D<EFBFBD>y<EFBFBD><14><01>6<EFBFBD><1D>-<2D>-<2D>5<>5<>5<><18>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD><01><11>Q<EFBFBD><06><01><14>9<EFBFBD>9<EFBFBD>;<3B><18>A<EFBFBD>v<EFBFBD>!<21>m<EFBFBD>m<EFBFBD>9<>9<>9<><1D><1A><1A>A<EFBFBD><1D>B<EFBFBD><15><11>F<EFBFBD>A<EFBFBD><18>A<EFBFBD>v<EFBFBD>!<21>m<EFBFBD>m<EFBFBD>9<>9<>9<><1D><1A><1A>A<EFBFBD><1D>B<EFBFBD><15><11>F<EFBFBD>A<EFBFBD><1E>J<EFBFBD>J<EFBFBD>L<EFBFBD>R<EFBFBD>Z<EFBFBD>Z<EFBFBD>\<5C>!<21>m<EFBFBD>m<EFBFBD>7<>7<>7<> #<23>A<EFBFBD><06><13> <0C>s<EFBFBD>2<EFBFBD>w<EFBFBD><12>|<7C> ;<3B>c<EFBFBD>"<22>g<EFBFBD> E<>I<EFBFBD> <20>3<EFBFBD><EFBFBD>!<21>m<EFBFBD>m<EFBFBD>7<>7<>7<><1B>I<EFBFBD><0E>A<EFBFBD> <15><11>N<EFBFBD>I<EFBFBD>/<10>!<21>e<EFBFBD>0<15>T<EFBFBD>Z<EFBFBD>Z<EFBFBD><19>+<2B>+rc<00>v<00>d}t|j<00>}d}||k<00>r||j|}|dz }|dk(<00>rH||k\rtjj<00>|j|}|dz }|j <00>r<>||k\rtjj<00>|j|}|dz }||k\rtjj<00>|j|}|dz }|j <00>r|j <00>stjj <00>t|<04>dzt|<05>dzzt|<06>z}|dkDrtjj <00>|d|zz }n'||j<00>z }n||j<00>z }||kr<02><01>|t|jt|<01><00>S) Nrrr rNrOrPrQs%c) rRrrSrTrUrVrWrX<00>encoderr<00>bytesrZs r<00>unescape_to_byteszToken.unescape_to_bytes<65>s}<00><00>2<18> <09> <0F><04>
<EFBFBD>
<EFBFBD>O<EFBFBD><01> <0A><01><0F>!<21>e<EFBFBD><14>
<EFBFBD>
<EFBFBD>1<EFBFBD> <0A>A<EFBFBD> <0A><11>F<EFBFBD>A<EFBFBD><10>D<EFBFBD>y<EFBFBD><14><01>6<EFBFBD><1D>-<2D>-<2D>5<>5<>5<><18>J<EFBFBD>J<EFBFBD>q<EFBFBD>M<EFBFBD><01><11>Q<EFBFBD><06><01><14>9<EFBFBD>9<EFBFBD>;<3B><18>A<EFBFBD>v<EFBFBD>!<21>m<EFBFBD>m<EFBFBD>9<>9<>9<><1D><1A><1A>A<EFBFBD><1D>B<EFBFBD><15><11>F<EFBFBD>A<EFBFBD><18>A<EFBFBD>v<EFBFBD>!<21>m<EFBFBD>m<EFBFBD>9<>9<>9<><1D><1A><1A>A<EFBFBD><1D>B<EFBFBD><15><11>F<EFBFBD>A<EFBFBD><1E>J<EFBFBD>J<EFBFBD>L<EFBFBD>R<EFBFBD>Z<EFBFBD>Z<EFBFBD>\<5C>!<21>m<EFBFBD>m<EFBFBD>7<>7<>7<> #<23>A<EFBFBD><06><13> <0C>s<EFBFBD>2<EFBFBD>w<EFBFBD><12>|<7C> ;<3B>c<EFBFBD>"<22>g<EFBFBD> E<>I<EFBFBD> <20>3<EFBFBD><EFBFBD>!<21>m<EFBFBD>m<EFBFBD>7<>7<>7<><1D><15>)<29>!4<>4<>I<EFBFBD><1E><11><18><18><1A>+<2B>I<EFBFBD><19>Q<EFBFBD>X<EFBFBD>X<EFBFBD>Z<EFBFBD>'<27> <09>?<10>!<21>e<EFBFBD>@<15>T<EFBFBD>Z<EFBFBD>Z<EFBFBD><15>y<EFBFBD>!1<>2<>2r)rMFN)r%r)rrrrrXr<00>bool<6F>strr$r*r.r1r5r8r;r>r@rFrHrKrbrfrrrrr,s<><00><00><08><18> <20>"<22> <1F><12> <1F><13> <1F><19> <1F>
<15>t<EFBFBD><1A> <1F>!<21><04>!<21>!<21><04>!<21>(<28>t<EFBFBD>(<28>(<28>t<EFBFBD>(<28>+<2B>$<24>+<2B>%<25>D<EFBFBD>%<25>'<27>d<EFBFBD>'<27>6<>t<EFBFBD>6<>G<01>
F<01>
.<2E>,<2C>@<3rrc <00><00>eZdZdZej
ddfdededzdejjdzfd<06>Z defd<08>Z de eeffd <09>Zd
eddfd <0B>Zdefd <0C>Zd)d ededefd<0F>Zdeddfd<11>Zd<12>ZeZd<13>Zd*dedefd<15>Zdefd<16>Zd*dedefd<17>Zd*dedefd<18>Zd*dedefd<19>Zd+dedzdefd<1B>Zdefd<1C>Zd+dedzde efd<1E>Z!d,dedefd <20>Z" d-ded!ejjFdzd"ed#ejjFdzdejjFf
d$<24>Z$ d-d!ejjFdzd"ed#ejjFdzdejjFfd%<25>Z%defd&<26>Z&defd'<27>Z'defd(<28>Z(y).<2E> Tokenizera<72>A DNS zone file format tokenizer.
A token object is basically a (type, value) tuple. The valid
types are EOF, EOL, WHITESPACE, IDENTIFIER, QUOTED_STRING,
COMMENT, and DELIMITER.
file: The file to tokenize
ungotten_char: The most recently ungotten character, or None.
ungotten_token: The most recently ungotten token, or None.
multiline: The current multiline level. This value is increased
by one every time a '(' delimiter is read, and decreased by one every time
a ')' delimiter is read.
quoting: This variable is true if the tokenizer is currently
reading a quoted string.
eof: This variable is true if the tokenizer has encountered EOF.
delimiters: The current delimiter dictionary.
line_number: The current line number
filename: A filename that will be returned by the where() method.
idna_codec: A dns.name.IDNACodec, specifies the IDNA
encoder/decoder. If None, the default IDNA 2003
encoder/decoder is used.
N<>f<>filename<6D>
idna_codecc<00><><00>t|t<00>rtj|<01>}|<02>Td}nQt|t<00>r(tj|j <00><00>}|<02>d}n|<02>|t jurd}nd}||_d|_ d|_
d|_ d|_ d|_ t|_d|_|<02>J<00>||_|<03> t$j&j(|_y||_y)a<>Initialize a tokenizer instance.
f: The file to tokenize. The default is sys.stdin.
This parameter may also be a string, in which case the tokenizer
will take its input from the contents of the string.
filename: the name of the filename that the where() method
will return.
idna_codec: A dns.name.IDNACodec, specifies the IDNA
encoder/decoder. If None, the default IDNA 2003
encoder/decoder is used.
Nz<string>z<stdin>z<file>rFr )rCrh<00>io<69>StringIOre<00>decode<64>sys<79>stdin<69>file<6C> ungotten_char<61>ungotten_token<65> multiline<6E>quoting<6E>eof<6F> _DELIMITERS<52>
delimiters<EFBFBD> line_numberrlrS<00>name<6D> IDNA_2003rm)r#rkrlrms rr$zTokenizer.__init__<5F>s<><00><00>( <16>a<EFBFBD><13> <1D><12> <0B> <0B>A<EFBFBD><0E>A<EFBFBD><17><1F>%<25><08> <17><01>5<EFBFBD> !<21><12> <0B> <0B>A<EFBFBD>H<EFBFBD>H<EFBFBD>J<EFBFBD>'<27>A<EFBFBD><17><1F>%<25><08><17><1F><14><03> <09> <09>><3E>(<28>H<EFBFBD>'<27>H<EFBFBD><15><04> <09>)-<2D><04><1A>,0<><04><1B><1A><04><0E><1C><04> <0C><18><04><08>%<25><04><0F><1C><04><18><17>#<23>#<23>#<23> <20><04> <0A> <15> <1D>25<32>(<28>(<28>2D<32>2D<32>D<EFBFBD>O<EFBFBD>(<28>D<EFBFBD>Orr%c<00><><00>|j<00>U|jrd}|S|jjd<03>}|dk(r d|_|S|dk(r|xjdz c_|S|j}d|_|S)zRead a character from input.NrMr Tr)ruryrt<00>readr|<00>r#r^s r<00> _get_charzTokenizer._get_chars<><00><00> <10> <1D> <1D> %<25><13>x<EFBFBD>x<EFBFBD><16><01><11><08><19>I<EFBFBD>I<EFBFBD>N<EFBFBD>N<EFBFBD>1<EFBFBD>%<25><01><14><02>7<EFBFBD>#<23>D<EFBFBD>H<EFBFBD> <11><08> <17>$<24>Y<EFBFBD><18>$<24>$<24><01>)<29>$<24><11><08><15>"<22>"<22>A<EFBFBD>!%<25>D<EFBFBD> <1E><10>rc<00>2<00>|j|jfS)z<>Return the current location in the input.
Returns a (string, int) tuple. The first item is the filename of
the input, the second is the current line number.
)rlr|r)s r<00>wherezTokenizer.where)s<00><00><15> <0A> <0A>t<EFBFBD>/<2F>/<2F>0<>0rr^c<00>6<00>|j<00>t<00>||_y)a%Unget a character.
The unget buffer for characters is only one character large; it is
an error to try to unget a character when the unget buffer is not
empty.
c: the character to unget
raises UngetBufferFull: there is already an ungotten char
N)rurr<>s r<00> _unget_charzTokenizer._unget_char2s<00><00> <10> <1D> <1D> )<29>!<21> !<21><1E><04>rc<00><><00>d} |j<00>}|dk7r)|dk7r$|dk7s |js|j|<02>|S|dz }<01>D)aFConsume input until a non-whitespace character is encountered.
The non-whitespace character is then ungotten, and the number of
whitespace characters consumed is returned.
If the tokenizer is in multiline mode, then newlines are whitespace.
Returns the number of characters skipped.
rrrrr )r<>rwr<>)r#<00>skippedr^s r<00>skip_whitespacezTokenizer.skip_whitespaceBsS<00><00><14><07><12><14><0E><0E> <20>A<EFBFBD><10>C<EFBFBD>x<EFBFBD>A<EFBFBD><14>I<EFBFBD><15><14>I<EFBFBD>d<EFBFBD>n<EFBFBD>n<EFBFBD><18>$<24>$<24>Q<EFBFBD>'<27>"<22>N<EFBFBD> <13>q<EFBFBD>L<EFBFBD>G<EFBFBD> r<00> want_leading<6E> want_commentc<00><><00>|j<00>=|j}d|_|j<00>r|r|S|j<00>r|r|S|S|j<00>}|r|dkDrt t
d<03>Sd}t }d} |j<00>}|dk(s||jv<00>r<>|dk(r&|jrtjj<00>|dk(<00>r<>|tk7<00>r<>|dk(r&|xjdz c_|j<00><00><>|d k(rO|jdkrtjj<00>|xjdzc_|j<00><00><>|d
k(rJ|jsd|_ t |_t}<06><01>
d|_ t"|_|j<00><00><01>.|d k(rt t$d <0B>S|d k(r<> |j<00>}|d k(s|dk(rn||z }<05>!|r!|j'|<08>t t(|<05>S|dk(r<|jrtjjd <0A><00>t t*|<05><0E>S|jr|j<00>d}<05><01><>t t$d |<05><0E>S|}t,}n|j'|<08>n<>|jr$|d k(rtjjd<0F><00>|dk(rG||z }d}|j<00>}|dk(s|d k(r&|jstjj<00>||z }<05><02><>|dk(r:|tk7r1|jrtjjd <0A><00>t*}t |||<07>S)a<>Get the next token.
want_leading: If True, return a WHITESPACE token if the
first character read is whitespace. The default is False.
want_comment: If True, return a COMMENT token if the
first token read is a comment. The default is False.
Raises dns.exception.UnexpectedEnd: input ended prematurely
Raises dns.exception.SyntaxError: input was badly formed
Returns a Token.
NrrrMFTr
r r r rr zunbalanced parentheses)r!znewline in quoted stringrN)rvr1r;r<>rr0r4r<>r{rxrSrTrUr7rwrW<00>_QUOTING_DELIMITERSrzr-r<>r:r(r=) r#r<>r<><00>utokenr<6E><00>tokenrr r^s r<00>getz Tokenizer.getVs<00><00> <10> <1E> <1E> *<2A><19>(<28>(<28>F<EFBFBD>"&<26>D<EFBFBD> <1F><15>#<23>#<23>%<25><1F>!<21>M<EFBFBD><17>"<22>"<22>$<24><1F>!<21>M<EFBFBD><1D> <0A><16>&<26>&<26>(<28><07> <17>G<EFBFBD>a<EFBFBD>K<EFBFBD><18><1A>S<EFBFBD>)<29> )<29><12><05><1A><05><1A>
<EFBFBD><12><14><0E><0E> <20>A<EFBFBD><10>B<EFBFBD>w<EFBFBD>!<21>t<EFBFBD><EFBFBD><EFBFBD>.<2E><14><02>7<EFBFBD>t<EFBFBD>|<7C>|<7C><1D>-<2D>-<2D>5<>5<>5<><18>B<EFBFBD>;<3B>5<EFBFBD>M<EFBFBD>#9<><18>C<EFBFBD>x<EFBFBD><1C><0E><0E>!<21>+<2B><0E><1C>,<2C>,<2C>.<2E> <20><1A>c<EFBFBD><18><1F>><3E>><3E>Q<EFBFBD>.<2E>"%<25>-<2D>-<2D>";<3B>";<3B>;<3B><1C><0E><0E>!<21>+<2B><0E><1C>,<2C>,<2C>.<2E> <20><1A>c<EFBFBD><18>#<23>|<7C>|<7C>+/<2F>D<EFBFBD>L<EFBFBD>.A<>D<EFBFBD>O<EFBFBD>$1<>E<EFBFBD>$<24>+0<>D<EFBFBD>L<EFBFBD>.9<EFBFBD>D<EFBFBD>O<EFBFBD> <20>0<>0<>2<>$<24><1A>d<EFBFBD><19>$<24>S<EFBFBD>$<24>/<2F>/<2F><1A>c<EFBFBD><18><1F> $<24><0E><0E> 0<>A<EFBFBD> <20>D<EFBFBD>y<EFBFBD>A<EFBFBD><12>G<EFBFBD> %<25>!<21>Q<EFBFBD>J<EFBFBD>E<EFBFBD>  <20>
(<28> <20>,<2C>,<2C>Q<EFBFBD>/<2F>#(<28><17>%<25>#8<>8<><1E>"<22>W<EFBFBD>#<23>~<7E>~<7E>&)<29>m<EFBFBD>m<EFBFBD>&?<3F>&?<3F>$<<3C>'"<22>!"<22>$)<29><13>e<EFBFBD>#<<3C><<3C>!<21>^<5E>^<5E> <20>0<>0<>2<>$&<26>E<EFBFBD>$<24>#(<28><13>d<EFBFBD>E<EFBFBD>#B<>B<>
!"<22><05> )<29><05><18>$<24>$<24>Q<EFBFBD>'<27><15><15><1C><1C>!<21>t<EFBFBD>)<29><19>m<EFBFBD>m<EFBFBD>/<2F>/<2F>0J<30>K<>K<><12>d<EFBFBD><19>
<16><11>
<EFBFBD><05>!<21>
<EFBFBD><18>N<EFBFBD>N<EFBFBD>$<24><01><14><02>7<EFBFBD>q<EFBFBD>D<EFBFBD>y<EFBFBD><14><1C><1C><1D>-<2D>-<2D>5<>5<>5<> <11>Q<EFBFBD>J<EFBFBD>E<EFBFBD>O<13>P <11>B<EFBFBD>;<3B>5<EFBFBD>M<EFBFBD>1<><13>~<7E>~<7E><19>m<EFBFBD>m<EFBFBD>/<2F>/<2F>0H<30>I<>I<><17>E<EFBFBD><14>U<EFBFBD>E<EFBFBD>:<3A>.<2E>.rr<>c<00>6<00>|j<00>t<00>||_y)aUnget a token.
The unget buffer for tokens is only one token large; it is
an error to try to unget a token when the unget buffer is not
empty.
token: the token to unget
Raises UngetBufferFull: there is already an ungotten token
N)rvr<00>r#r<>s r<00>ungetzTokenizer.unget<65>s<00><00> <10> <1E> <1E> *<2A>!<21> !<21>#<23><04>rc<00>R<00>|j<00>}|j<00>rt<00>|S)zHReturn the next item in an iteration.
Returns a Token.
)r<>r*<00> StopIterationr<6E>s r<00>nextzTokenizer.next<78>s#<00><00> <15><08><08>
<EFBFBD><05> <10><<3C><<3C>><3E><1F> <1F><14> rc<00><00>|Sr'rr)s r<00>__iter__zTokenizer.__iter__<5F>s<00><00><13> r<00>basec<00>:<00>|j<00>j<00>}|j<00>stjj d<01><00>|j j<00>stjj d<02><00>t|j |<01>S)z<>Read the next token and interpret it as an unsigned integer.
Raises dns.exception.SyntaxError if not an unsigned integer.
Returns an int.
<20>expecting an identifierzexpecting an integer) r<>rbr5rSrTrWrrVrX)r#r<>r<>s r<00>get_intzTokenizer.get_int<6E>sq<00><00><15><08><08>
<EFBFBD>#<23>#<23>%<25><05><14>"<22>"<22>$<24><15>-<2D>-<2D>+<2B>+<2B>,E<>F<> F<><14>{<7B>{<7B>"<22>"<22>$<24><15>-<2D>-<2D>+<2B>+<2B>,B<>C<> C<><12>5<EFBFBD>;<3B>;<3B><04>%<25>%rc<00>~<00>|j<00>}|dks|dkDr"tjj|<01>d<03><02><00>|S)z<>Read the next token and interpret it as an 8-bit unsigned
integer.
Raises dns.exception.SyntaxError if not an 8-bit unsigned integer.
Returns an int.
rrQz! is not an unsigned 8-bit integer<65>r<>rSrTrW)r#rs r<00> get_uint8zTokenizer.get_uint8<74>s><00><00><15> <0C> <0C><0E><05> <10>1<EFBFBD>9<EFBFBD><05><03> <0B><15>-<2D>-<2D>+<2B>+<2B>u<EFBFBD>g<EFBFBD>5V<35>,W<>X<> X<><14> rc<00><><00>|j|<01><01>}|dks|dkDrJ|dk(r#tjj|d<05>d<06><02><00>tjj|<02>d<07><02><00>|S)z<>Read the next token and interpret it as a 16-bit unsigned
integer.
Raises dns.exception.SyntaxError if not a 16-bit unsigned integer.
Returns an int.
<20>r<>ri<><69><00><00>oz( is not an octal unsigned 16-bit integerz" is not an unsigned 16-bit integerr<72><00>r#r<>rs r<00>
get_uint16zTokenizer.get_uint16sw<00><00><15> <0C> <0C>$<24> <0C>'<27><05> <10>1<EFBFBD>9<EFBFBD><05><05> <0A><13>q<EFBFBD>y<EFBFBD><19>m<EFBFBD>m<EFBFBD>/<2F>/<2F><1C>Q<EFBFBD>i<EFBFBD>G<>H<><12><12><1A>m<EFBFBD>m<EFBFBD>/<2F>/<2F><1C>g<EFBFBD>?<3F>@<40><12><12><15> rc<00><><00>|j|<01><01>}|dks|dkDr"tjj|<02>d<04><02><00>|S)z<>Read the next token and interpret it as a 32-bit unsigned
integer.
Raises dns.exception.SyntaxError if not a 32-bit unsigned integer.
Returns an int.
r<>rl<00><EFBFBD>z" is not an unsigned 32-bit integerr<72>r<>s r<00>
get_uint32zTokenizer.get_uint32sK<00><00><15> <0C> <0C>$<24> <0C>'<27><05> <10>1<EFBFBD>9<EFBFBD><05>
<EFBFBD>*<2A><15>-<2D>-<2D>+<2B>+<2B><18>'<27>;<3B><<3C><0E> <0E><15> rc<00><><00>|j|<01><01>}|dks|dkDr"tjj|<02>d<04><02><00>|S)z<>Read the next token and interpret it as a 48-bit unsigned
integer.
Raises dns.exception.SyntaxError if not a 48-bit unsigned integer.
Returns an int.
r<>rl<00><EFBFBD><EFBFBD>z" is not an unsigned 48-bit integerr<72>r<>s r<00>
get_uint48zTokenizer.get_uint48)sK<00><00><15> <0C> <0C>$<24> <0C>'<27><05> <10>1<EFBFBD>9<EFBFBD><05><0F>/<2F><15>-<2D>-<2D>+<2B>+<2B><18>'<27>;<3B><<3C><0E> <0E><15> r<00>
max_lengthc<00>F<00>|j<00>j<00>}|j<00>s/|j<00>stj
j d<01><00>|r7t|j<00>|kDrtj
j d<02><00>|jS)z<>Read the next token and interpret it as a string.
Raises dns.exception.SyntaxError if not a string.
Raises dns.exception.SyntaxError if token value length
exceeds max_length (if specified).
Returns a string.
zexpecting a stringzstring too long) r<>rbr5r8rSrTrWrRr)r#r<>r<>s r<00>
get_stringzTokenizer.get_string9sx<00><00><15><08><08>
<EFBFBD>#<23>#<23>%<25><05><15>#<23>#<23>%<25><15>)?<3F>)?<3F>)A<><15>-<2D>-<2D>+<2B>+<2B>,@<40>A<> A<> <15>#<23>e<EFBFBD>k<EFBFBD>k<EFBFBD>*<2A>Z<EFBFBD>7<><15>-<2D>-<2D>+<2B>+<2B>,=<3D>><3E> ><3E><14>{<7B>{<7B>rc<00><><00>|j<00>j<00>}|j<00>stjj d<01><00>|j S)z<>Read the next token, which should be an identifier.
Raises dns.exception.SyntaxError if not an identifier.
Returns a string.
r<>)r<>rbr5rSrTrWrr<>s r<00>get_identifierzTokenizer.get_identifierJsD<00><00><15><08><08>
<EFBFBD>#<23>#<23>%<25><05><14>"<22>"<22>$<24><15>-<2D>-<2D>+<2B>+<2B>,E<>F<> F<><14>{<7B>{<7B>r<00>
max_tokensc<00><><00>g} |j<00>}|j<00>r|j|<03> |S|j|<03>t |<02>|k(r |S<00>W)z<>Return the remaining tokens on the line, until an EOL or EOF is seen.
max_tokens: If not None, stop after this number of tokens.
Returns a list of tokens.
)r<>r@r<><00>appendrR)r#r<><00>tokensr<73>s r<00> get_remainingzTokenizer.get_remainingWs`<00><00><14><06><12><18>H<EFBFBD>H<EFBFBD>J<EFBFBD>E<EFBFBD><14>"<22>"<22>$<24><14>
<EFBFBD>
<EFBFBD>5<EFBFBD>!<21><15><16> <0A> <13>M<EFBFBD>M<EFBFBD>%<25> <20><12>6<EFBFBD>{<7B>j<EFBFBD>(<28><15><15> <0A>r<00> allow_emptyc<00>F<00>d} |j<00>j<00>}|j<00>r|j|<03>n:|j <00>st
j j<00>||jz }<02>z|s!|st
j jd<02><00>|S)aRead the remaining tokens on the line, which should be identifiers.
Raises dns.exception.SyntaxError if there are no remaining tokens,
unless `allow_empty=True` is given.
Raises dns.exception.SyntaxError if a token is seen that is not an
identifier.
Returns a string containing a concatenation of the remaining
identifiers.
rMzexpecting another identifier) r<>rbr@r<>r5rSrTrWr)r#r<><00>sr<73>s r<00>!concatenate_remaining_identifiersz+Tokenizer.concatenate_remaining_identifiersjs<><00><00> <0F><01><12><18>H<EFBFBD>H<EFBFBD>J<EFBFBD>'<27>'<27>)<29>E<EFBFBD><14>"<22>"<22>$<24><14>
<EFBFBD>
<EFBFBD>5<EFBFBD>!<21><15><18>&<26>&<26>(<28><19>m<EFBFBD>m<EFBFBD>/<2F>/<2F>/<2F> <0A><15><1B><1B> <1C>A<EFBFBD><13><1C>q<EFBFBD><15>-<2D>-<2D>+<2B>+<2B>,J<>K<> K<><10>r<00>origin<69>
relativize<EFBFBD> relativize_toc<00><><00>|j<00>stjjd<01><00>tjj |j ||j<00>}|j|xs||<03>S)z<>Try to interpret the token as a DNS name.
Raises dns.exception.SyntaxError if not a name.
Returns a dns.name.Name.
r<>) r5rSrTrWr}<00> from_textrrm<00>choose_relativity)r#r<>r<>r<>r<>r}s r<00>as_namezTokenizer.as_name<6D>s^<00><00><15>"<22>"<22>$<24><15>-<2D>-<2D>+<2B>+<2B>,E<>F<> F<><12>x<EFBFBD>x<EFBFBD>!<21>!<21>%<25>+<2B>+<2B>v<EFBFBD>t<EFBFBD><EFBFBD><EFBFBD>G<><04><13>%<25>%<25>m<EFBFBD>&=<3D>v<EFBFBD>z<EFBFBD>J<>Jrc<00>J<00>|j<00>}|j||||<03>S)z<>Read the next token and interpret it as a DNS name.
Raises dns.exception.SyntaxError if not a name.
Returns a dns.name.Name.
)r<>r<>)r#r<>r<>r<>r<>s r<00>get_namezTokenizer.get_name<6D>s$<00><00><15><08><08>
<EFBFBD><05><13>|<7C>|<7C>E<EFBFBD>6<EFBFBD>:<3A>}<7D>E<>Erc<00><><00>|j<00>}|j<00>s:tjj d|j
<00>d|j <00>d<03><05><00>|S)znRead the next token and raise an exception if it isn't EOL or
EOF.
Returns a string.
zexpected EOL or EOF, got rJr )r<>r@rSrTrWrrr<>s r<00>get_eol_as_tokenzTokenizer.get_eol_as_token<65>sS<00><00><15><08><08>
<EFBFBD><05><14>"<22>"<22>$<24><15>-<2D>-<2D>+<2B>+<2B>+<2B>E<EFBFBD>K<EFBFBD>K<EFBFBD>=<3D><02>5<EFBFBD>;<3B>;<3B>-<2D>q<EFBFBD>I<><0E> <0E><15> rc<00>6<00>|j<00>jSr')r<>rr)s r<00>get_eolzTokenizer.get_eol<6F>s<00><00><13>$<24>$<24>&<26>,<2C>,<2C>,rc<00><><00>|j<00>j<00>}|j<00>stjj d<01><00>tj j|j<00>S)z<>Read the next token and interpret it as a DNS TTL.
Raises dns.exception.SyntaxError or dns.ttl.BadTTL if not an
identifier or badly formed.
Returns an int.
r<>) r<>rbr5rSrTrW<00>ttlr<6C>rr<>s r<00>get_ttlzTokenizer.get_ttl<74>sS<00><00><15><08><08>
<EFBFBD>#<23>#<23>%<25><05><14>"<22>"<22>$<24><15>-<2D>-<2D>+<2B>+<2B>,E<>F<> F<><12>w<EFBFBD>w<EFBFBD> <20> <20><15><1B><1B>-<2D>-r)FF)rPr')F)NFN))rrrrrrrsrrhrSr}<00> IDNACodecr$r<>rrXr<>r<>r<>rgrr<>r<>r<><00>__next__r<5F>r<>r<>r<>r<>r<>r<>r<>rr<>r<><00>Namer<65>r<>r<>r<>r<>rrrrjrj<00>s`<00><00><08>D<15><19><19>#<23>04<30> /)<29> <0E>/)<29><16><04>*<2A>/)<29><18>H<EFBFBD>H<EFBFBD>&<26>&<26><14>-<2D> /)<29>b<11>3<EFBFBD><11>"1<>u<EFBFBD>S<EFBFBD>#<23>X<EFBFBD><EFBFBD>1<><1F>S<EFBFBD><1F>T<EFBFBD><1F> <19><13><19>(m/<2F><04>m/<2F>D<EFBFBD>m/<2F>U<EFBFBD>m/<2F>^$<24>5<EFBFBD>$<24>T<EFBFBD>$<24> <15><14>H<EFBFBD><14>
&<26>C<EFBFBD> &<26><13> &<26> <15>3<EFBFBD> <15><15>s<EFBFBD><15>C<EFBFBD><15>*<15>s<EFBFBD><15>C<EFBFBD><15> <15>s<EFBFBD><15>C<EFBFBD><15> <1B>S<EFBFBD>4<EFBFBD>Z<EFBFBD><1B>3<EFBFBD><1B>" <1B><03> <1B><16><03>d<EFBFBD>
<EFBFBD><16>d<EFBFBD>5<EFBFBD>k<EFBFBD><16>&<11>T<EFBFBD><11>c<EFBFBD><11>8(,<2C> <20>.2<EFBFBD> K<01><14>K<01><14><08><08> <0A> <0A><04>$<24>K<01><19> K<01>
<1B>x<EFBFBD>x<EFBFBD>}<7D>}<7D>t<EFBFBD>+<2B> K<01>
<0A><18><18><1D><1D> K<01>((,<2C> <20>.2<EFBFBD> F<01><13><08><08> <0A> <0A><04>$<24>F<01><19>F<01><1B>x<EFBFBD>x<EFBFBD>}<7D>}<7D>t<EFBFBD>+<2B> F<01>
<0A><18><18><1D><1D> F<01> <15>%<25> <15>-<2D><13>-<2D> .<2E><13> .rrj)rrorr<00>typingrrr<00> dns.exceptionrS<00>dns.name<6D>dns.ttlrzr<>r(r-r0r4r7r:r=rT<00> DNSExceptionrrrjrrr<00><module>r<>s<><00><01>$$<24> <09>
<EFBFBD>#<23>#<23><14><0F><0E>3<> <0B><1A>e<EFBFBD><13><07><03><07><03> <0E>
<EFBFBD> <0E>
<EFBFBD><11> <0A>
<0B><07> <0A> <09>O<01>c<EFBFBD>m<EFBFBD>m<EFBFBD>0<>0<>O<01>W3<>W3<>t|.<2E>|.r