Ticket #44007

generate_packets.py: replace range(len(...)) with enumerate(...)

오픈 날짜: 2022-03-02 23:11 마지막 업데이트: 2022-03-04 17:46

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

Part of #43927. Replace constructs of the form

  1. for i in range(len(seq)):
  2. elem = seq[i]
  3. # loop body
with
  1. for i, elem in enumerate(seq):
  2. # loop body

Ticket History (3/4 Histories)

2022-03-02 23:11 Updated by: alienvalkyrie
  • New Ticket "generate_packets.py: replace range(len(...)) with enumerate(...)" created
2022-03-03 00:35 Updated by: alienvalkyrie
  • Resolution Update from None to Accepted
2022-03-04 17:46 Updated by: alienvalkyrie
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login