ok
Direktori : /opt/alt/python27/lib64/python2.7/lib2to3/ |
Current File : //opt/alt/python27/lib64/python2.7/lib2to3/patcomp.pyc |
� �[ bc @ s� d Z d Z d d l Z d d l m Z m Z m Z m Z m Z m Z d d l m Z d d l m Z d e f d � � YZ d � Z d e f d � � YZ i e j d 6e j d 6e j d 6d d 6Z d � Z d � Z d � Z d S( s� Pattern compiler. The grammar is taken from PatternGrammar.txt. The compiler compiles a pattern to a pytree.*Pattern instance. s# Guido van Rossum <guido@python.org>i����Ni ( t drivert literalst tokent tokenizet parset grammar( t pytree( t pygramt PatternSyntaxErrorc B s e Z RS( ( t __name__t __module__( ( ( s4 /opt/alt/python27/lib64/python2.7/lib2to3/patcomp.pyR s c c sw t t j t j t j f � } t j t j | � j � } x7 | D]/ } | \ } } } } } | | k r@ | Vq@ q@ Wd S( s6 Tokenizes a string suppressing significant whitespace.N( t setR t NEWLINEt INDENTt DEDENTR t generate_tokenst StringIOt readline( t inputt skipt tokenst quintuplet typet valuet startt endt line_text( ( s4 /opt/alt/python27/lib64/python2.7/lib2to3/patcomp.pyt tokenize_wrapper s t PatternCompilerc B sA e Z d d � Z e e d � Z d � Z d d � Z d � Z RS( c C s� | d k r'