Your IP : 216.73.216.213
�
��fq c @ s� d Z d Z d d l m Z d d l Z d d l Z d d l Z d d l m Z d d l Z d d l m Z e j
� d d
� Z d d � Z e
d
k r� e � n d S( u, Main program for testing the infrastructure.u# Guido van Rossum <guido@python.org>i ( u supporti Ni ( u pytree( u driverc
C s� t j d � } t j | d t j �} d } | j | d d �} t | | � s^ t d � n t j
d d � su d Sg } x� t j D]� } t j | } | d k s� t
| d � r� q� n | j } | j d � r� | d d � } n | j d � s� q� n t d
| d t j �| j | d d �} t | | � r� | j | � q� q� Wxt j D]} y t j | � } Wn t j k
r�wRYn Xt d | d
d t j �x� | D]� } | j d � s�q�n t d
| d t j �t j j | | � } y | j | d d �} Wn8 t j j k
r?} z t d | � WYd d } ~ Xq�Xt | | � r�| j | � q�q�WqRW| szt d � n( t d � x | D] } t d | � q�Wd S( Nu Grammar.txtu convertu
example.pyu debugu No diffs.i u __file__u .pycu .pyu Parsingu fileu Scanningu ...u ParseError:u No problems. Congratulations!u Problems in following files:u ***Ti����( u driveru load_grammaru Driveru pytreeu convertu
parse_fileu Trueu diffu printu sysu argvu modulesu Noneu hasattru __file__u endswithu stderru appendu pathu osu listdiru erroru joinu pgen2u parseu
ParseError(
u gru dru fnu treeu problemsu nameu modu diru namesu err( ( uE /opt/alt/python33/lib64/python3.3/lib2to3/tests/pytree_idempotency.pyu main sX
u mainc C s^ t d d � } z | j t | � � Wd | j � Xz t j d | � SWd t j d � Xd S( Nu @u wu diff -u %s @( u openu writeu stru closeu osu systemu remove( u fnu treeu f( ( uE /opt/alt/python33/lib64/python3.3/lib2to3/tests/pytree_idempotency.pyu diffP s u diffu __main__( u __doc__u
__author__u u supportu osu sysu loggingu pytreeu pgen2u driveru basicConfigu mainu diffu __name__( ( ( uE /opt/alt/python33/lib64/python3.3/lib2to3/tests/pytree_idempotency.pyu <module> s
8