def METHOD_NAME(value, selection):
    """A quoting function. Used to get consistent formatting"""
    # print "Quoting",repr(value),selection
    if isType(value, type('')):
        if selection == 'copyable':
            value = value.replace('"', R'\"')
            value = value.replace("'", R"\'")