llvm-project
7ac0a3ce - [lit] Replace zip(range(len(x)), x) with enumerate(x) in ProgressBar (#199884)

Commit
2 days ago
[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@gmail.com>
Author
Parents
Loading