#NEWLINE# def _parse_multiformat( self , string , formats ) : #NEWLINE# #INDENT# _datetime = None #NEWLINE# for fmt in formats : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# _datetime = self . parse ( string , fmt ) #NEWLINE# break #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# if ( _datetime is None ) : #NEWLINE# #INDENT# raise ParserError ( "Could not match input to any of {0} on '{1}'" . format ( formats , string ) ) #NEWLINE# #UNINDENT# return self