#NEWLINE# def parse( cls , text ) : #NEWLINE# #INDENT# 'Takes user input and returns partial value dict\n\t\t\n\t\tThis just adds support for negative values, which\n\t\tconsists of negating all values if the hour value is\n\t\tnegative.\n\t\t' #NEWLINE# values = super ( _TimeDeltaParser , cls ) . parse ( text ) #NEWLINE# if ( values [ 'hour' ] < 0 ) : #NEWLINE# #INDENT# values [ 'minute' ] = ( - values [ 'minute' ] ) #NEWLINE# values [ 'second' ] = ( - values [ 'second' ] ) #NEWLINE# #UNINDENT# return text