(long_line)
return new_list
Split on = gives me the right sections but deletes the b64 padding
    use modulo math to restore padding.
    return new list.
Split on = gives me the right sections but deletes the b64 padding
    use modulo math to restore padding.
    return new list.
Split on = gives me the right sections but deletes the b64 padding use modulo math to restore padding . return new list .
def messy_split(long_line):
    # this is a messy way to split the data but it works for now.
    '''
    Split on = gives me the right sections but deletes the b64 padding
    use modulo math to restore padding.
    return new list.
    '''
    new_list = []
    old_list = long_line.split('=')
    for line in old_list:
        if len(line) != 0:
            line += "=" * ((4 - len(line) % 4) % 4)
            new_list.append(line)
    return new_list
def messy_split ( long_line ) : # this is a messy way to split the data but it works for now. new_list = [ ] old_list = long_line . split ( '=' ) for line in old_list : if len ( line ) != 0 : line += "=" * ( ( 4 - len ( line ) % 4 ) % 4 ) new_list . append ( line ) return new_list