def raise_protocol_error(server_handshake_bytes):

    other_protocol = detect_other_protocol(server_handshake_bytes)

    if other_protocol:
        raise TLSError('TLS protocol error - server responded using %s' % other_protocol)

    raise TLSError('TLS protocol error - server responded using a different protocol')
Cycle through values as the loop progresses.
dataset/ETHPy150Open wbond/oscrypto/oscrypto/_tls.py/raise_protocol_error--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Mako-0.8.1/mako/runtime.py/LoopContext.cycle