[all-commits] [llvm/llvm-project] 7ac0a3: [lit] Replace zip(range(len(x)), x) with enumerate...

Prasoon via All-commits all-commits at lists.llvm.org
Thu May 28 08:16:10 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ac0a3cec9bf6c6199f62be26d1cdb754c97383d
      https://github.com/llvm/llvm-project/commit/7ac0a3cec9bf6c6199f62be26d1cdb754c97383d
  Author: Prasoon <prasoonkumar054 at gmail.com>
  Date:   2026-05-28 (Thu, 28 May 2026)

  Changed paths:
    M llvm/utils/lit/lit/ProgressBar.py

  Log Message:
  -----------
  [lit] Replace zip(range(len(x)), x) with enumerate(x) in ProgressBar (#199884)

Updated `ProgressBar.py` to replace four instances of
`zip(range(len(x)), x)` with `enumerate(x)`. The former is a legacy
Python 2 pattern, while `enumerate()` is the modern and efficient Python
3 idiom. This is a clean-up refactor that results in no behavioral
changes to the code.

This PR is part of the "GSoC 2026: Improving lit" project.

Signed-off-by: Prasoon Kumar <prasoonkumar054 at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list