message: Simplify code and remove unrelevant comments
diff: @@ -6,7 +6,6 @@ from absl import flags
  FLAGS = flags.FLAGS
  -# Let's use Amazon S3
  s3 = boto3.resource("s3")
  session = boto3.Session()
  client = session.client("s3")
  @@ -33,23 +32,23 @@ def push(group_name: str, task_name: str):
  Method will push everything in output directory to the S3_BUCKET on AWS S3
  Args:
  - @param group_name
  - @param task_name
  - @param bucket
  + group_name (str)
  + task_name (str)
  """
  # Use output_dir which was passed via absl flags and defaults to
  # "git_root/output" and upload everything in it as results
  output_dir = FLAGS.output_dir
  bucket = FLAGS.S3_bucket
  - # enumerate local files recursively
  - for root, _, files in os.walk(output_dir):
  - files = [f for f in files if f not in [".gitkeep", ".DS_Store"]]
  + ignored_files = [".gitkeep", ".DS_Store"]
  + files = listdir_recursive(output_dir)
  for fname in files:
  - local_path = os.path.join(root, fname)
  - relative_path = os.path.relpath(local_path, output_dir)
  - key = os.path.join(group_name, task_name, relative_path)
  + if fname in ignored_files:
  + continue
  +
  + local_path = os.path.join(output_dir, fname)
  + key = os.path.join(group_name, task_name, fname)
  # pylint: disable=bare-except
  try:
  @@ -65,11 +64,6 @@ def download():
  """
  Method will download all remote results which are locally not present
  from the S3_BUCKET on AWS S3
  -
  - Args:
  - @param group_name
  - @param task_name
  - @param bucket
  """
  # Use results_dir which was passed via absl flags and defaults to
  # "git_root/results" and upload everything in it as results
  