#NEWLINE# def _to_python( self , value ) : #NEWLINE# #INDENT# if isinstance ( value , util . strbase ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# value = value . split ( '.' , 1 ) [ 0 ] #NEWLINE# value = time ( * strptime ( value , '%H:%M:%S' ) [ 3 : 6 ] ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise ValueError ( ( 'Invalid ISO time %r' % value ) ) #NEWLINE# #UNINDENT# #UNINDENT# return value