/opt/alt/python27/lib64/python2.7/lib2to3/pgen2
NameSizeModeActions
conv.py96270644editdlrm
conv.pyc82670644editdlrm
conv.pyo71150644editdlrm
driver.py60410644editdlrm
driver.pyc66320644editdlrm
driver.pyo65690644editdlrm
grammar.py65940644editdlrm
grammar.pyc78270644editdlrm
grammar.pyo78270644editdlrm
literals.py16140644editdlrm
literals.pyc20700644editdlrm
literals.pyo18380644editdlrm
parse.py80530644editdlrm
parse.pyc73920644editdlrm
parse.pyo73530644editdlrm
pgen.py138260644editdlrm
pgen.pyc126540644editdlrm
pgen.pyo120410644editdlrm
token.py12530755editdlrm
token.pyc23550644editdlrm
token.pyo23550644editdlrm
tokenize.py192440644editdlrm
tokenize.pyc172310644editdlrm
tokenize.pyo171420644editdlrm
__init__.py1430644editdlrm
__init__.pyc1870644editdlrm
__init__.pyo1870644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/lib2to3/pgen2/grammar.pyo (7827B)
ó Þ[ bc@s¨dZddlZddlZddlmZmZdefd„ƒYZd„ZdZ iZ xBe j ƒD]4Z e rle j ƒ\ZZeeeƒe et|dƒ)}t|jƒ}tj||dƒWdQXdS(s½Dump the grammar tables to a pickle file. dump() recursively changes all dict to OrderedDict, so the pickled file is not exactly the same as what was passed in to dump(). load() uses the pickled file to create the tables, but only changes OrderedDict to dict at the top level; it does not recursively change OrderedDict to dict. So, the loaded tables are different from the original tables that were passed to load() in that some of the OrderedDict (from the pickled file) are not changed back to dict. For parsing, this has no effect on performance because OrderedDict uses dict's __getitem__ with nothing in between. twbiN(topent_make_deterministict__dict__tpickletdump(R tfilenametftd((s:/opt/alt/python27/lib64/python2.7/lib2to3/pgen2/grammar.pyRXs cCs<t|dƒ}tj|ƒ}|jƒ|jj|ƒdS(s+Load the grammar tables from a pickle file.trbN(RRtloadtcloseRtupdate(R RRR((s:/opt/alt/python27/lib64/python2.7/lib2to3/pgen2/grammar.pyRis cCs|jjtj|ƒƒdS(s3Load the grammar tables from a pickle bytes object.N(RRRtloads(R tpkl((s:/opt/alt/python27/lib64/python2.7/lib2to3/pgen2/grammar.pyRpscCsf|jƒ}x-dD]%}t||t||ƒjƒƒqW|j|_|j|_|j|_|S(s# Copy the grammar. RRRR R R (RRRR R R (t __class__tsetattrtgetattrtcopyRRR (R tnewt dict_attr((s:/opt/alt/python27/lib64/python2.7/lib2to3/pgen2/grammar.pyR!ts  #   cCszddlm}dGH||jƒdGH||jƒdGH||jƒdGH||jƒdGH||jƒdG|jGHd S( s:Dump the grammar tables to standard output, for debugging.iÿÿÿÿ(tpprintts2ntn2sRRRR N(R$RRRRRR (R R$((s:/opt/alt/python27/lib64/python2.7/lib2to3/pgen2/grammar.pytreports     ( t__name__t __module__t__doc__RRRRR!R'(((s:/opt/alt/python27/lib64/python2.7/lib2to3/pgen2/grammar.pyRs4    cCs…t|tƒr2tjtd„|jƒDƒƒƒSt|tƒr^g|D]}t|ƒ^qHSt|tƒrtd„|DƒƒS|S(Ncss'|]\}}|t|ƒfVqdS(N(R(t.0tktv((s:/opt/alt/python27/lib64/python2.7/lib2to3/pgen2/grammar.pys ”scss|]}t|ƒVqdS(N(R(R+te((s:/opt/alt/python27/lib64/python2.7/lib2to3/pgen2/grammar.pys ˜s( t isinstancetdictt collectionst OrderedDicttsortedt iteritemstlistRttuple(ttopR.((s:/opt/alt/python27/lib64/python2.7/lib2to3/pgen2/grammar.pyR‘ss ( LPAR ) RPAR [ LSQB ] RSQB : COLON , COMMA ; SEMI + PLUS - MINUS * STAR / SLASH | VBAR & AMPER < LESS > GREATER = EQUAL . DOT % PERCENT ` BACKQUOTE { LBRACE } RBRACE @ AT @= ATEQUAL == EQEQUAL != NOTEQUAL <> NOTEQUAL <= LESSEQUAL >= GREATEREQUAL ~ TILDE ^ CIRCUMFLEX << LEFTSHIFT >> RIGHTSHIFT ** DOUBLESTAR += PLUSEQUAL -= MINEQUAL *= STAREQUAL /= SLASHEQUAL %= PERCENTEQUAL &= AMPEREQUAL |= VBAREQUAL ^= CIRCUMFLEXEQUAL <<= LEFTSHIFTEQUAL >>= RIGHTSHIFTEQUAL **= DOUBLESTAREQUAL // DOUBLESLASH //= DOUBLESLASHEQUAL -> RARROW (R*R1RtRRtobjectRRt opmap_rawtopmapt splitlinestlinetsplittoptnameR (((s:/opt/alt/python27/lib64/python2.7/lib2to3/pgen2/grammar.pyt s  z =