shell bypass 403
�
?��cc @ s d Z d d l Z d d l m Z m Z m Z d d l m Z m Z d d l Z d d l
Z
d d l m Z d d l m
Z
m Z d d � Z d � Z d
d d � � YZ d e j f d
� � YZ d e j f d � � YZ d e j f d � � YZ d � Z e d k re � n d S( s,
Tests for fileinput module.
Nick Mathewson
i����N( t verboset TESTFNt run_unittest( t unlinkt check_warnings( t StringIO( t FileInputt hook_encodedt wc C s: t t | � } t | | � } | j | � | j � | S( N( R t strt opent
writelinest close( t it linest modet namet f( ( s: /usr/local/python-2.7/lib/python2.7/test/test_fileinput.pyt writeTmp s
c G s x | D] } t | � q Wd S( N( t safe_unlink( t namesR ( ( s: /usr/local/python-2.7/lib/python2.7/test/test_fileinput.pyt remove_tempfiles s
t
LineReaderc B sJ e Z d � Z e d � � Z d � Z d d � Z d d � Z d � Z RS( c C s
g | _ d S( N( t
_linesread( t self( ( s: /usr/local/python-2.7/lib/python2.7/test/test_fileinput.pyt __init__! s c C s z | j SWd g | _ Xd S( N( R ( R ( ( s: /usr/local/python-2.7/lib/python2.7/test/test_fileinput.pyt linesread$ s c C s t | j t � � | _ | S( N( t itert
splitlinest Truet it( R t filenameR ( ( s: /usr/local/python-2.7/lib/python2.7/test/test_fileinput.pyt openhook+ s c C s&