Range() in for loop need a refactor
Bug #1259560 reported by
Wu Wenxiang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Wu Wenxiang |
Bug Description
In some files, range was called as:
for i in range(0, 10):
pass
Actually the start index arg was useless, since its defaultvalue is 0.
They should be refactor as:
for i in range(10):
pass
Changed in neutron: | |
assignee: | nobody → Wu Wenxiang (wu-wenxiang) |
Changed in neutron: | |
status: | New → In Progress |
Changed in neutron: | |
milestone: | none → icehouse-2 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | icehouse-2 → 2014.1 |
To post a comment you must log in.
https:/ /review. openstack. org/#/c/ 61100/