def _PrepareFile(filename):
  fh = open(filename, 'r')
  checksummer = hashlib.sha1()
  filesize = 0

  for line in fh:
    if not ValidSqlLine(line):
      logging.fatal('File contains invalid sql: %s', line)

    filesize += len(line)
    checksummer.update(line)

  return fh, filesize, checksummer.hexdigest()
Get line items on filter keyword arguments other than id
dataset/ETHPy150Open google/mysql-tools/trickle_file_runner.py/_PrepareFile--crossover with--dataset/ETHPy150Open chartbeat-labs/parselmouth/parselmouth/adapters/dfp/client.py/DFPClient.get_line_items