def str2list(encoding):
    """Transform a string encoding to a list.

    :param encoding: encoding
    :type encoding: string
    :return: list of bits
    :rtype: list
    """
    encodingList = [int(x) for x in encoding[1:-1].split(',')]
    return encodingList