#NEWLINE# def _parse_spec( self , path ) : #NEWLINE# #INDENT# if ( not os . path . isfile ( path ) ) : #NEWLINE# #INDENT# raise DataError ( ( "Spec file '%s' does not exist." % path ) ) #NEWLINE# #UNINDENT# with ETSource ( path ) as source : #NEWLINE# #INDENT# root = ET . parse ( source ) . getroot ( ) #NEWLINE# #UNINDENT# if ( root . tag != 'keywordspec' ) : #NEWLINE# #INDENT# raise DataError ( ( "Invalid spec file '%s'." % path ) ) #NEWLINE# #UNINDENT# return root