403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/lib2to3/pgen2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/lib2to3/pgen2/driver.pyc
ó
—|_c@s·dZdZddgZddlZddlZddlZddlZddlZddlm	Z	m
Z
mZmZm
Z
defd„ƒYZd	deedd
„Zd„ZdS(sZParser driver.

This provides a high-level interface to parse a file into a syntax tree.

s#Guido van Rossum <guido@python.org>tDrivertload_grammariÿÿÿÿNi(tgrammartparsettokenttokenizetpgencBsVeZddd„Zed„Zed„Zed„Zded„Zed„Z	RS(cCs:||_|dkr$tjƒ}n||_||_dS(N(RtNonetloggingt	getLoggertloggertconvert(tselfRRR
((s*/usr/lib/python2.7/lib2to3/pgen2/driver.pyt__init__s
		cCs=tj|j|jƒ}|jƒd}d}d	}}}}	}
d}xé|D]Ã}|\}}}}	}
|||fkr
||f|ks¨t||f|fƒ‚|\}
}||
krá|d|
|7}|
}d}n||kr
||
||!7}|}q
n|tjtj	fkr`||7}|	\}}|j
dƒrQ|d7}d}qQqQn|tjkrtj
|}n|r¨|jjdtj|||ƒn|j||||fƒrà|rÜ|jjdƒnPnd}|	\}}|j
dƒrQ|d7}d}qQqQWtjd||||fƒ‚|jS(
s4Parse a series of tokens and return the syntax tree.iius
s%s %r (prefix=%r)sStop.tsincomplete inputN(RtParserRRtsetupRtAssertionErrorRtCOMMENTtNLtendswithRtOPtopmapR
tdebugttok_nametaddtokent
ParseErrortrootnode(RttokensRtptlinenotcolumnttypetvaluetstarttendt	line_texttprefixt	quintuplets_linenots_column((s*/usr/lib/python2.7/lib2to3/pgen2/driver.pytparse_tokens&sT

*	

	

	cCs"tj|jƒ}|j||ƒS(s*Parse a stream and return the syntax tree.(Rtgenerate_tokenstreadlineR)(RtstreamRR((s*/usr/lib/python2.7/lib2to3/pgen2/driver.pytparse_stream_rawVscCs|j||ƒS(s*Parse a stream and return the syntax tree.(R-(RR,R((s*/usr/lib/python2.7/lib2to3/pgen2/driver.pytparse_stream[scCs;tj|d|ƒ}z|j||ƒSWd|jƒXdS(s(Parse a file and return the syntax tree.trN(tcodecstopenR.tclose(RtfilenametencodingRR,((s*/usr/lib/python2.7/lib2to3/pgen2/driver.pyt
parse_file_scCs+tjtj|ƒjƒ}|j||ƒS(s*Parse a string and return the syntax tree.(RR*tStringIOR+R)(RttextRR((s*/usr/lib/python2.7/lib2to3/pgen2/driver.pytparse_stringgsN(
t__name__t
__module__RR
tFalseR)R-R.R5R8(((s*/usr/lib/python2.7/lib2to3/pgen2/driver.pyRs0sGrammar.txtc	Cs*|dkrtjƒ}n|dkr~tjj|ƒ\}}|dkrTd}n||djttt	j
ƒƒd}n|s”t||ƒr
|jd|ƒt
j|ƒ}|r&|jd|ƒy|j|ƒWq
tk
r}|jdt|ƒƒq
Xq&ntjƒ}|j|ƒ|S(	s'Load the grammar (maybe from a pickle).s.txtRt.s.pickles!Generating grammar tables from %ssWriting grammar tables to %ssWriting failed:N(RRR	tostpathtsplitexttjointmaptstrtsystversion_infot_newertinfoRtgenerate_grammartdumptIOErrorRtGrammartload(	tgttgptsavetforceR
theadttailtgte((s*/usr/lib/python2.7/lib2to3/pgen2/driver.pyRms&	*!
cCsNtjj|ƒstStjj|ƒs,tStjj|ƒtjj|ƒkS(s0Inquire whether file a was written since file b.(R=R>texistsR;tTruetgetmtime(tatb((s*/usr/lib/python2.7/lib2to3/pgen2/driver.pyRE†s
(t__doc__t
__author__t__all__R0R=RR6RCRRRRRRtobjectRRRUR;RRE(((s*/usr/lib/python2.7/lib2to3/pgen2/driver.pyt<module>s(P

Youez - 2016 - github.com/yon3zu
LinuXploit