Ñò §ÚêLc@s•dZddkZh dd6dd6dd6d d 6d d 6d d6dd6dd6dd6dd6Zd„Zd„Zd„Zedjo eƒndS(s<Safely evaluate Python string literals without using eval().iÿÿÿÿNstastbs tfs tns trs tts tvt't"s\cCsú|iddƒ\}}ti|ƒ}|dj o|S|idƒon|d}t|ƒdjotd|ƒ‚nyt|dƒ}Wqðtj otd|ƒ‚qðXn:yt|dƒ}Wn#tj otd|ƒ‚nXt|ƒS( Niitxis!invalid hex string escape ('\%s')iis#invalid octal string escape ('\%s')( tgrouptsimple_escapestgettNonet startswithtlent ValueErrortinttchr(tmtallttailtescthexesti((s./usr/lib64/python2.6/lib2to3/pgen2/literals.pytescapes"  cCsZ|d}|d |djo|d}n|t|ƒt|ƒ !}tidt|ƒS(Niis)\\(\'|\"|\\|[abfnrtv]|x.{0,2}|[0-7]{1,3})(RtretsubR(tstq((s./usr/lib64/python2.6/lib2to3/pgen2/literals.pyt evalString(s  cCsaxZtdƒD]L}t|ƒ}t|ƒ}t|ƒ}||jo|G|G|G|GHq q WdS(Ni(trangeRtreprR(RtcRte((s./usr/lib64/python2.6/lib2to3/pgen2/literals.pyttest2s     t__main__(t__doc__RR RRR#t__name__(((s./usr/lib64/python2.6/lib2to3/pgen2/literals.pyts