

def _verify_transaction_file_header(reader, required_header):
    header = reader.next()
    if (len(header) != len(required_header)):
        raise Exception('Header mismatch for transaction file')
    for i in range(len(required_header)):
        if (header[i] != required_header[i]):
            raise Exception(('Header mismatch at %d: %s <> %s' % (i, header[i], required_header[i])))

dataset/ETHPy150Open fxdemolisher/frano/frano/transactions/models.py _verify_transaction_file_header/original