b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/shlex.pyc
Size7.53 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:32
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc
@sdZddkZddkZddklZyddklZWn#ej
oddklZnXddgZ dd d��YZ
e e d�Z
ed joveei�d
jo
e
�Zn#eid
Ze
ee�e�Zx.ei�Zeod ee�GHqëPqëndS(
s8A lexical analyzer class for simple shell-like syntaxes.iÿÿÿÿN(tdeque(tStringIOtshlextsplitcBszeZdZd d ed�Zd�Zd d�Zd�Zd�Z d�Z
d�Z d d d�Z d �Z
d
�ZRS( s8A lexical analyzer class for simple shell-like syntaxes.cCsFt|t�ot|�}n|dj o||_||_nti|_d|_||_|o
d|_ n
d|_ d|_
d|_ |io|i d7_ nd|_ t
|_d|_d|_d|_d |_t�|_d
|_d |_d|_t�|_d|_|iod |i|ifGHndS(
Ntt#t?abcdfeghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_s>ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞs
s'"s\t"t iisshlex: reading from %s, line %d(t
isinstancet
basestringRtNonetinstreamtinfiletsyststdintposixteoft
commenterst wordcharst
whitespacetFalsetwhitespace_splittquotestescapet
escapedquoteststateRtpushbacktlinenotdebugttokent filestacktsource(tselfR R
R((s/usr/lib64/python2.6/shlex.pyt__init__s<
 
   
   
            
cCs7|idjodt|�GHn|ii|�dS(s:Push a token onto the stack popped by the get_token methodisshlex: pushing token N(RtreprRt
appendleft(R!ttok((s/usr/lib64/python2.6/shlex.pyt
push_token;scCs�t|t�ot|�}n|ii|i|i|if�||_||_d|_|io3|dj od|ifGHq�d|ifGHndS(s9Push an input source onto the lexer's input source stack.isshlex: pushing to file %ssshlex: pushing to stream %sN(
R R
RRR$R
R RRR (R!t newstreamtnewfile((s/usr/lib64/python2.6/shlex.pyt push_sourceAs"   

cCs^|ii�|ii�\|_|_|_|iod|i|ifGHnd|_dS(sPop the input source stack.sshlex: popping to %s, line %dRN(R tcloseRtpopleftR
RRR(R!((s/usr/lib64/python2.6/shlex.pyt
pop_sourceOs 
!
cCsA|io7|ii�}|idjodt|�GHn|S|i�}|idj odxa||ijoL|i|i��}|o |\}}|i||�n|i �}q`Wnx=||i
jo,|i p|i
S|i �|i �}qÄW|idjo,||i
jodt|�GHq=dGHn|S(sBGet a token from the input stream (or from stack if it's nonempty)isshlex: popping token s
shlex: token=sshlex: token=EOFN(
RR+RR#t
read_tokenR R t
sourcehookR)t get_tokenRRR,(R!R%trawtspecR(R'((s/usr/lib64/python2.6/shlex.pyR/Xs2
  

 cCsÕt}d}xTtoL|iid�}|djo|id|_n|idjo$dGt|i�GdGt|�GHn|idjod|_ Pq|idjom|pd|_Pq^||i
jo@|idjo d GHn|i p|i o |oPqqq^||i jo!|ii
�|id|_q^|i o#||ijod
}||_q^||ijo||_ d
|_q^||ijo$|i p
||_ n||_q^|io||_ d
|_q^||_ |i p|i o |oPq^qq|i|ijoÏt}|p&|idjo d GHntd �n||ijo5|i p|i ||_ d|_Pqöd
|_q^|i o9||ijo)|i|ijo|i}||_q^|i ||_ q|i|ijo�|p&|idjo d
GHntd�n||ijo4||ijo$||jo|i |i|_ n|i ||_ ||_q|id
jo³|pd|_Pq^||i
joI|idjo dGHnd|_|i p|i o |oPqZqq^||i jo[|ii
�|id|_|i o0d|_|i p|i o |oPq�qqZq^|i o||ijo
||_q^|i o#||ijod
}||_q^||ijp||ijp
|io|i ||_ q^|ii|�|idjo dGHnd|_|i oPq^qqqW|i }d|_ |i o| o|djo
d}n|idjo#|odt|�GHqÑdGHn|S(NRis
isshlex: in statesI see character:Ris+shlex: I see whitespace in whitespace statetas shlex: I see EOF in quotes statesNo closing quotations shlex: I see EOF in escape statesNo escaped characters%shlex: I see whitespace in word states&shlex: I see punctuation in word statesshlex: raw token=sshlex: raw token=EOF(RtTrueR treadRRR#RR RRRRtreadlineRRRRt
ValueErrorRRR$(R!tquotedt escapedstatetnextchartresult((s/usr/lib64/python2.6/shlex.pyR-xsâ
   

 




 
  

 
 
 

   

  

 
  
   
 cCs�|ddjo|dd!}nt|it�o<tii|� o(tiitii|i�|�}n|t|d�fS(s(Hook called on a filename to be sourced.iRiiÿÿÿÿtr( R R
R
tostpathtisabstjointdirnametopen(R!R(((s/usr/lib64/python2.6/shlex.pyR.øs
'(cCsB|djo
|i}n|djo
|i}nd||fS(s<Emit a C-compiler-like, Emacs-friendly error-message leader.s"%s", line %d: N(R R
R(R!R
R((s/usr/lib64/python2.6/shlex.pyt error_leaders




cCs|S(N((R!((s/usr/lib64/python2.6/shlex.pyt__iter__ scCs*|i�}||ijo
t�n|S(N(R/Rt
StopIteration(R!R((s/usr/lib64/python2.6/shlex.pytnext s 
N(t__name__t
__module__t__doc__R RR"R&R)R,R/R-R.RBRCRE(((s/usr/lib64/python2.6/shlex.pyRs$   �  cCs9t|d|�}t|_|p
d|_nt|�S(NRR(RR3RRtlist(tstcommentsRtlex((s/usr/lib64/python2.6/shlex.pyRs
 
t__main__isToken: ((RHtos.pathR<Rt collectionsRt cStringIORt ImportErrort__all__RRR3RRFtlentargvtlexertfileRAR/tttR#(((s/usr/lib64/python2.6/shlex.pyt<module>s(   ý