#NEWLINE# def __init__( self , filename ) : #NEWLINE# #INDENT# self . filename = filename #NEWLINE# self . modulename = os . path . splitext ( os . path . basename ( self ) ) [ 0 ] #NEWLINE# if os . path . exists ( filename ) : #NEWLINE# #INDENT# logging . debug ( ( 'Parsing %s' % filename ) ) #NEWLINE# try : #NEWLINE# #INDENT# self . cxml = ET . parse ( filename ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# self . cxml = None #NEWLINE# logging . error ( ( 'ET Failed to parse %s' % filename ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . cxml = None #NEWLINE# logging . error ( ( 'File %s does not exists' % filename ) )