def _ParseWorkload(contents):
  fp = io.BytesIO(contents)
  result = {}
  for line in fp:
    if (line.strip() and not line.lstrip().startswith('#') and
        not line.lstrip().startswith('!')):
      k, v = re.split(r'\s*[:=]\s*', line, maxsplit=1)
      result[k] = v.strip()
  return result
A passthrough for our ThreadPool because it can't take two arguments.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_packages/ycsb.py/_ParseWorkload--crossover with--dataset/ETHPy150Open datadesk/django-bakery/bakery/management/commands/publish.py/Command.pooled_upload_to_s3