Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/dns/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/dns/tokenizer.pyo
�
m!|Uc@s�dZddlZddlZddlZddlZddlZied6ed6ed6ed6ed6ed6ed	6Zied	6Z	d
Z
dZdZd
Z
dZdZdZdejjfd��YZdefd��YZdefd��YZdS(sTokenize DNS master file formati����Nt s	s
t;t(t)t"iiiiiiitUngetBufferFullcBseZdZRS(sDAn attempt was made to unget a token when the unget buffer was full.(t__name__t
__module__t__doc__(((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyR,stTokencBs�eZdZded�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�ZRS(s�A DNS master file format token.

    @ivar ttype: The token type
    @type ttype: int
    @ivar value: The token value
    @type value: string
    @ivar has_escape: Does the token value contain escapes?
    @type has_escape: bool
    tcCs||_||_||_dS(sInitialize a token instance.

        @param ttype: The token type
        @type ttype: int
        @param value: The token value
        @type value: string
        @param has_escape: Does the token value contain escapes?
        @type has_escape: bool
        N(tttypetvaluet
has_escape(tselfRRR
((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt__init__:s
		cCs
|jtkS(N(RtEOF(R((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytis_eofHscCs
|jtkS(N(RtEOL(R((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytis_eolKscCs
|jtkS(N(Rt
WHITESPACE(R((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt
is_whitespaceNscCs
|jtkS(N(Rt
IDENTIFIER(R((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt
is_identifierQscCs
|jtkS(N(Rt
QUOTED_STRING(R((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytis_quoted_stringTscCs
|jtkS(N(RtCOMMENT(R((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt
is_commentWscCs
|jtkS(N(Rt	DELIMITER(R((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytis_delimiterZscCs|jtkp|jtkS(N(RRR(R((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt
is_eol_or_eof]scCs5t|t�stS|j|jko4|j|jkS(N(t
isinstanceR	tFalseRR(Rtother((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt__eq__`scCs5t|t�stS|j|jkp4|j|jkS(N(RR	tTrueRR(RR!((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt__ne__fscCsd|j|jfS(Ns%d "%s"(RR(R((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt__str__lscCsu|js
|Sd}t|j�}d}x:||krd|j|}|d7}|dkrW||krutjj�n|j|}|d7}|j�rW||kr�tjj�n|j|}|d7}||kr�tjj�n|j|}|d7}|j�o|j�s#tjj�ntt	|�dt	|�dt	|��}qWn||7}q+Wt
|j|�S(NR
iis\idi
(R
tlenRtdnst	exceptiont
UnexpectedEndtisdigittSyntaxErrortchrtintR	R(Rt	unescapedtltitctc2tc3((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytunescapeos6	







4cCsdS(Ni((R((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt__len__�scCst|j|jf�S(N(titerRR(R((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt__iter__�scCs0|dkr|jS|dkr&|jSt�dS(Nii(RRt
IndexError(RR0((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt__getitem__�s
(RRRR RRRRRRRRRR"R$R%R4R5R7R9(((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyR	/s"															t	TokenizercBs�eZdZejdd�Zd�Zd�Zd�Z	d�Z
eed�Zd�Z
d�Zd	�Zd
�Zd�Zd�Zd
�Zdd�Zdd�Zdd�Zd�Zd�ZRS(s�A DNS master file format tokenizer.

    A token is a (type, value) tuple, where I{type} is an int, and
    I{value} is a string.  The valid types are EOF, EOL, WHITESPACE,
    IDENTIFIER, QUOTED_STRING, COMMENT, and DELIMITER.

    @ivar file: The file to tokenize
    @type file: file
    @ivar ungotten_char: The most recently ungotten character, or None.
    @type ungotten_char: string
    @ivar ungotten_token: The most recently ungotten token, or None.
    @type ungotten_token: (int, string) token tuple
    @ivar 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.
    @type multiline: int
    @ivar quoting: This variable is true if the tokenizer is currently
    reading a quoted string.
    @type quoting: bool
    @ivar eof: This variable is true if the tokenizer has encountered EOF.
    @type eof: bool
    @ivar delimiters: The current delimiter dictionary.
    @type delimiters: dict
    @ivar line_number: The current line number
    @type line_number: int
    @ivar filename: A filename that will be returned by the L{where} method.
    @type filename: string
    cCs�t|ttf�r<tj|�}|dkrid}qin-|dkri|tjkr`d}qid}n||_d|_	d|_
d|_t|_
t|_t|_d|_||_dS(s�Initialize a tokenizer instance.

        @param 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.
        @type f: file or string
        @param filename: the name of the filename that the L{where} method
        will return.
        @type filename: string
        s<string>s<stdin>s<file>iiN(Rtstrtunicodet	cStringIOtStringIOtNonetsyststdintfilet
ungotten_chartungotten_tokent	multilineR tquotingteoft_DELIMITERSt
delimiterstline_numbertfilename(RtfRK((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyR�s"										cCs�|jdkrl|jr!d}q~|jjd�}|dkrKt|_q~|dkr~|jd7_q~n|j}d|_|S(s<Read a character from input.
        @rtype: string
        R
is
N(RCR?RGRBtreadR#RJ(RR1((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt	_get_char�s				cCs|j|jfS(s�Return the current location in the input.

        @rtype: (string, int) tuple.  The first item is the filename of
        the input, the second is the current line number.
        (RKRJ(R((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytwhere�scCs%|jdk	rt�n||_dS(sEUnget 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.

        @param c: the character to unget
        @type c: string
        @raises UngetBufferFull: there is already an ungotten char
        N(RCR?R(RR1((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt_unget_char�s	cCsod}xbtrj|j�}|dkr]|dkr]|dksI|jr]|j|�|Sn|d7}q	WdS(s(Consume 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.

        @rtype: int
        iRs	s
iN(R#RNRERP(RtskippedR1((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytskip_whitespaces	
c
Cs�|jdk	rZ|j}d|_|j�r:|rW|SqZ|j�rS|rW|SqZ|Sn|j�}|r�|dkr�ttd�Sd}t}t}x�t	r@|j
�}|dks�||jkr�|dkr�|jr�t
jj�n|dkr�|tkr�|dkr.|jd7_|j�q�q�|dkrw|jdksXt
jj�n|jd8_|j�q�q�|dkr�|js�t	|_t|_t}q�q�t|_t|_|j�q�q�|dkr�ttd�S|d	kr�x5|j
�}|dks|dkrPn||7}q�|rI|j|�tt|�S|dkr}|jrst
jjd
��ntt�S|jr�|j�d}q�q�ttd�Sq�|}t}n
|j|�Png|jr�|dkr�|j
�}|dkrt
jj�n|j�r�|j
�}|dkr;t
jj�n|j
�}	|dkrbt
jj�n|j�ow|	j�s�t
jj�ntt|�dt|�d
t|	��}q�q3|dkr3t
jjd��q3nR|dkr3||7}t	}|j
�}|dks!|dkr3t
jj�q3n||7}q�W|dkr�|tkr�|jrwt
jjd
��nt}nt|||�S(sGet the next token.

        @param want_leading: If True, return a WHITESPACE token if the
        first character read is whitespace.  The default is False.
        @type want_leading: bool
        @param want_comment: If True, return a COMMENT token if the
        first token read is a comment.  The default is False.
        @type want_comment: bool
        @rtype: Token object
        @raises dns.exception.UnexpectedEnd: input ended prematurely
        @raises dns.exception.SyntaxError: input was badly formed
        iRR
RiRRs
Rsunbalanced parenthesess\idi
snewline in quoted stringN(RDR?RRRRR	RRR R#RNRIRFR'R(R)RRER+t_QUOTING_DELIMITERSRHRRPRRRR*R,R-(
Rtwant_leadingtwant_commentttokenRQRR
R1R2R3((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytgets�		
	

					




	
	
	
	4
		cCs%|jdk	rt�n||_dS(s@Unget 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.

        @param token: the token to unget
        @type token: Token object
        @raises UngetBufferFull: there is already an ungotten token
        N(RDR?R(RRV((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytunget�s	cCs%|j�}|j�r!t�n|S(sLReturn the next item in an iteration.
        @rtype: (int, string)
        (RWRt
StopIteration(RRV((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytnext�s	cCs|S(N((R((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyR7�scCsd|j�j�}|j�s3tjjd��n|jj�sWtjjd��nt|j�S(s|Read the next token and interpret it as an integer.

        @raises dns.exception.SyntaxError:
        @rtype: int
        sexpecting an identifiersexpecting an integer(	RWR4RR'R(R+RR*R-(RRV((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytget_int�scCsA|j�}|dks$|dkr=tjjd|��n|S(s�Read the next token and interpret it as an 8-bit unsigned
        integer.

        @raises dns.exception.SyntaxError:
        @rtype: int
        ii�s#%d is not an unsigned 8-bit integer(R[R'R(R+(RR((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt	get_uint8�scCsA|j�}|dks$|dkr=tjjd|��n|S(s�Read the next token and interpret it as a 16-bit unsigned
        integer.

        @raises dns.exception.SyntaxError:
        @rtype: int
        ii��s$%d is not an unsigned 16-bit integer(R[R'R(R+(RR((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt
get_uint16�scCs�|j�j�}|j�s3tjjd��n|jj�sWtjjd��nt|j�}|dks~|dkr�tjjd|��n|S(s�Read the next token and interpret it as a 32-bit unsigned
        integer.

        @raises dns.exception.SyntaxError:
        @rtype: int
        sexpecting an identifiersexpecting an integerils$%d is not an unsigned 32-bit integer(	RWR4RR'R(R+RR*tlong(RRVR((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt
get_uint32�scCsF|j�j�}|j�p'|j�s?tjjd��n|jS(s}Read the next token and interpret it as a string.

        @raises dns.exception.SyntaxError:
        @rtype: string
        sexpecting a string(RWR4RRR'R(R+R(RtoriginRV((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt
get_string�scCs:|j�j�}|j�s3tjjd��n|jS(s�Read the next token and raise an exception if it is not an identifier.

        @raises dns.exception.SyntaxError:
        @rtype: string
        sexpecting an identifier(RWR4RR'R(R+R(RR`RV((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytget_identifier�scCsC|j�}|j�s-tjjd��ntjj|j|�S(s�Read the next token and interpret it as a DNS name.

        @raises dns.exception.SyntaxError:
        @rtype: dns.name.Name objectsexpecting an identifier(RWRR'R(R+tnamet	from_textR(RR`RV((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytget_namescCsD|j�}|j�s=tjjd|j|jf��n|jS(s�Read the next token and raise an exception if it isn't EOL or
        EOF.

        @raises dns.exception.SyntaxError:
        @rtype: string
        s expected EOL or EOF, got %d "%s"(RWRR'R(R+RR(RRV((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytget_eols%cCsF|j�j�}|j�s3tjjd��ntjj|j�S(Nsexpecting an identifier(	RWR4RR'R(R+tttlRdR(RRV((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pytget_ttlsN(RRRR@RAR?RRNRORPRRR RWRXRZR7R[R\R]R_RaRbReRfRh(((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyR:�s& 					z		
			
	
		
(RR=R@t
dns.exceptionR'tdns.nametdns.ttlR#RHRSRRRRRRRR(tDNSExceptionRtobjectR	R:(((s1/usr/lib/python2.7/site-packages/dns/tokenizer.pyt<module>s0

m

Spamworldpro Mini