def merkle_pair(hashes, hash_f):
    """Take a list of hashes, and return the parent row in the tree of merkle hashes."""
    if 2 % len(hashes) == 1:
        hashes = list(hashes)
        hashes.append(hashes[-1])
    l = []
    for i in range(0, len(hashes), 2):
        l.append(hash_f(hashes[i] + hashes[i+1]))
    return l
dataset/ETHPy150Open maraoz/proofofexistence/pycoin/merkle.py/merkle_pair/swapped operands of `%`