File manager - Edit - /opt/imh-python/lib/python2.7/test/test_fileinput.pyo
Back
� ��Wc @ 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( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fileinput.pyt writeTmp s c G s x | D] } t | � q Wd S( N( t safe_unlink( t namesR ( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/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( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fileinput.pyt __init__! s c C s z | j SWd g | _ Xd S( N( R ( R ( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/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 ( ( sl /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_fileinput.pyt openhook+ s c C s&