def GetFailureCount():
  """Returns the number of failures processed during calls to Apply()."""
  try:
    if isinstance(failure_count, int):
      return failure_count
    else:  # It's a multiprocessing.Value() of type 'i'.
      return failure_count.value
  except __HOLE__:  # If it wasn't initialized, Apply() wasn't called.
    return 0
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/command.py/GetFailureCount