def str_encode(value, encoder='base64'):
    try:
        out = value.encode(encoder)
    except LookupError:
        raise SaltInvocationError('You must specify a valid encoder')
    except AttributeError:
        raise SaltInvocationError('Value must be an encode-able string')

    return out
When a connection is accepted over IPv4, the server
dataset/ETHPy150Open saltstack/salt/salt/modules/mod_random.py/str_encode--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/test/test_tcp.py/TCPPortTestsMixin.test_serverGetHostOnIPv4