#NEWLINE# def _parse_file_contents( self , selector_file_contents ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# selector_input_json = json . loads ( selector_file_contents ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise SelectorParseError ( 'MalformedJSON' ) #NEWLINE# #UNINDENT# self . _validate_selector_input ( selector_input_json ) #NEWLINE# selectors = self . _parse_input_for_selectors ( selector_input_json ) #NEWLINE# return selectors