

def _cmp_suites(x, y):
    'Compare cipher suite names'
    if x.startswith('SSLV2'):
        if (not y.startswith('SSLV2')):
            return cmp(1, 0)
    elif y.startswith('SSLV2'):
        return cmp(0, 1)
    return cmp(x, y)

dataset/ETHPy150Open operasoftware/tlsprober/probedb/resultdb2/ciphers.py _cmp_suites/original