def confirm_vote_message(object_description, vote_direction):
 if (vote_direction == 'clear'):
  message = 'Confirm clearing your vote for <strong>%s</strong>.'
 else:
  message = ('Confirm <strong>%s</strong> vote for <strong>%%s</strong>.' % vote_direction)
 return (message % (escape(object_description),))

def confirm_vote_message ( object_description , vote_direction ) : if ( vote_direction == 'clear' ) : message = 'Confirm clearing your vote for <strong>%s</strong>.' else : message = ( 'Confirm <strong>%s</strong> vote for <strong>%%s</strong>.' % vote_direction ) return ( message % ( escape ( object_description ) , ) )
creates an appropriate message asking the user to confirm the given vote for the given object description .