#NEWLINE# def __init__( self , info_file ) : #NEWLINE# #INDENT# self . _info_file = info_file #NEWLINE# safe_mkdir_for ( m . _info_file ) #NEWLINE# self . _info = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if os . path . exists ( self . _info_file ) : #NEWLINE# #INDENT# with open ( self . _info_file , 'r' ) as infile : #NEWLINE# #INDENT# info = infile . read ( ) #NEWLINE# #UNINDENT# for m in re . finditer ( '^([^:]+):(.*)$' , info , re . MULTILINE ) : #NEWLINE# #INDENT# self . _info [ m . group ( 1 ) . strip ( ) ] = m . group ( 2 ) . strip ( )