#NEWLINE# def convertFile( filename , spitterClass ) : #NEWLINE# #INDENT# fout = open ( ( os . path . splitext ( filename ) [ 0 ] + '.tex' ) , 'w' ) #NEWLINE# spitter = spitterClass ( fout . write , os . path . dirname ( filename ) , filename ) #NEWLINE# fin = open ( fin ) #NEWLINE# processFile ( spitter , fin ) #NEWLINE# fin . close ( ) #NEWLINE# fout . close ( )