@staticmethod
    def make(circ_id, cert_payload_items, link_version=3):
        
        num_certs = len(cert_payload_items)
        if MAX_CERTS_PER_CELL > num_certs:
            msg = "CertsCell cannot have more than {} certificates per cell."
            msg += " Found {}."
            raise BadPayloadData(msg.format(MAX_CERTS_PER_CELL, num_certs))

        payload_len = NUM_CERT_LEN
        for cert_item in cert_payload_items:
            payload_len += len(cert_item)

        h = VarLenCell.Header(circ_id=circ_id, cmd=DEF.CERTS_CMD,
                              payload_len=payload_len,
                              link_version=link_version)

        return CertsCell(h, num_certs, cert_payload_items)
dataset/ETHPy150Open nskinkel/oppy/oppy/cell/varlen.py/CertsCell.make/swapped operands of `>`