#NEWLINE# def _delta_string( delta , granularity ) : #NEWLINE# #INDENT# 'Return the string to use for the given delta and ordinality' #NEWLINE# if ( 1 == delta ) : #NEWLINE# #INDENT# return ( '1 ' + granularity ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( delta > 1 ) : #NEWLINE# #INDENT# return ( ( str ( delta ) + ' ' ) + _pluralize_granularity ( delta ) )