Range() in for loop need a refactor
Bug #1259750 reported by
Zhang Jinnan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Wishlist
|
Zhang Jinnan |
Bug Description
In some files, range was called as:
for i in range(0, 10):
pass
Actually the start index arg could be removed, since its default value is 0.
They should be refactor as:
for i in range(10):
pass
Changed in swift: | |
assignee: | nobody → Zhang Jinnan (ben-os-4) |
Changed in swift: | |
importance: | Undecided → Wishlist |
Changed in swift: | |
milestone: | none → 1.12.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/61294
Review: https:/