Range() in for loop need a refactor
Bug #1259744 reported by
Zhang Xin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo-incubator |
Fix Released
|
Wishlist
|
Zhang Xin |
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 oslo: | |
assignee: | nobody → Zhang Xin (ada-os) |
Changed in oslo: | |
importance: | Undecided → Wishlist |
Changed in oslo: | |
milestone: | none → icehouse-2 |
Changed in oslo: | |
status: | Fix Committed → Fix Released |
Changed in oslo: | |
milestone: | icehouse-2 → 2014.1 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/61287
Review: https:/