#NEWLINE# def __new__( cls , fst_model = None , * args , **kwargs ) : #NEWLINE# #INDENT# if ( not diagnose . check_executable ( 'phonetisaurus-g2p' ) ) : #NEWLINE# #INDENT# raise OSError ( ( ( "Can't find command 'phonetisaurus-g2p'! Please " + 'check if Phonetisaurus is installed and in your ' ) + '$PATH.' ) ) #NEWLINE# #UNINDENT# if ( ( fst_model is None ) or ( not os . access ( fst_model , os . R_OK ) ) ) : #NEWLINE# #INDENT# raise OSError ( ( ( "FST model '%r' does not exist! Can't create " + 'instance.' ) % fst_model ) ) #NEWLINE# #UNINDENT# inst = object . __new__ ( cls , fst_model , * args , ** kwargs ) #NEWLINE# return inst