<s> """<STR_LIT>""" <EOL> from test . test_support import verbose , unlink , findfile , import_module <EOL> imgfile = import_module ( '<STR_LIT>' , deprecated = True ) <EOL> import uu <EOL> def testimage ( name ) : <EOL> """<STR_LIT>""" <EOL> import sys <EOL> import os <EOL> outputfile = '<STR_LIT>' <EOL> try : <EOL> sizes = imgfile . getsizes ( name ) <EOL> except imgfile . error : <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> ourname = sys . argv [ <NUM_LIT:0> ] <EOL> else : <EOL> ourname = sys . modules [ __name__ ] . __file__ <EOL> parts = ourname . split ( os . sep ) <EOL> parts [ - <NUM_LIT:1> ] = name <EOL> name = os . sep . join ( parts ) <EOL> sizes = imgfile . getsizes ( name ) <EOL> if verbose : <EOL> print '<STR_LIT>' % ( name , str ( sizes ) ) <EOL> image = imgfile . read ( name ) <EOL> if verbose : <EOL> print '<STR_LIT>' <EOL> imgfile . write ( outputfile , image , sizes [ <NUM_LIT:0> ] , sizes [ <NUM_LIT:1> ] , sizes [ <NUM_LIT:2> ] ) <EOL> if verbose : <EOL> print '<STR_LIT>' % ( name , str ( sizes ) ) <EOL> if verbose : <EOL> print '<STR_LIT>' <EOL> simage = imgfile . readscaled ( name , sizes [ <NUM_LIT:0> ] / <NUM_LIT:2> , sizes [ <NUM_LIT:1> ] / <NUM_LIT:2> , '<STR_LIT>' , <NUM_LIT> ) <EOL> if verbose : <EOL> print '<STR_LIT>' <EOL> imgfile . ttob ( <NUM_LIT:1> ) <EOL> if verbose : <EOL> print '<STR_LIT>' <EOL> simage = imgfile . readscaled ( name , sizes [ <NUM_LIT:0> ] / <NUM_LIT:2> , sizes [ <NUM_LIT:1> ] / <NUM_LIT:2> , '<STR_LIT>' , <NUM_LIT> ) <EOL> if verbose : <EOL> print '<STR_LIT>' <EOL> imgfile . ttob ( <NUM_LIT:0> ) <EOL> if verbose : print '<STR_LIT>' <EOL> simage = imgfile . readscaled ( name , sizes [ <NUM_LIT:0> ] / <NUM_LIT:2> , sizes [ <NUM_LIT:1> ] / <NUM_LIT:2> , '<STR_LIT>' ) <EOL> if verbose : print '<STR_LIT>' <EOL> simage = imgfile . readscaled ( name , sizes [ <NUM_LIT:0> ] / <NUM_LIT:2> , sizes [ <NUM_LIT:1> ] / <NUM_LIT:2> , '<STR_LIT>' , <NUM_LIT:1.0> ) <EOL> if verbose : <EOL> print '<STR_LIT>' <EOL> imgfile . write ( outputfile , simage , sizes [ <NUM_LIT:0> ] / <NUM_LIT:2> , sizes [ <NUM_LIT:1> ] / <NUM_LIT:2> , sizes [ <NUM_LIT:2> ] ) <EOL> os . unlink ( outputfile ) <EOL> def test_main ( ) : <EOL> uu . decode ( findfile ( '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> uu . decode ( findfile ( '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> testimage ( '<STR_LIT>' ) <EOL> testimage ( '<STR_LIT>' ) <EOL> unlink ( '<STR_LIT>' ) <EOL> unlink ( '<STR_LIT>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> test_main ( ) </s>
