#NEWLINE# def lgl2dot( self , leafprot , erroffset ) : #NEWLINE# #INDENT# f = open ( 'leafprot.lf' , 'w' ) #NEWLINE# f . write ( leafprot ) #NEWLINE# f . close ( ) #NEWLINE# t = os . system ( ( ( 'lglc' + ' leafprot.lf -l' ) + str ( erroffset ) ) ) #NEWLINE# if ( t != 0 ) : #NEWLINE# #INDENT# raise NameError ( ( ( 'Error while running lglc. ' + 'If I was able to run it, it produced an error message. ' ) + 'Otherwise make sure you can successfully run lglc from a system shell.' ) ) #NEWLINE# #UNINDENT# a = open ( 'leafprot.lf.dot' , 'r' ) . read ( ) #NEWLINE# return a