[issue31417] Use the enumerate function where appropriate

2017-09-11 Thread Mark Byrne
Mark Byrne added the comment: Generally, we consider the danger of introducing bugs to be more significant than the benefit of the "cleanup" changes. The fact that you are discussing further changes to the code in the PR make this more likely. I haven't updated the PR wi

[issue31417] Use the enumerate function where appropriate

2017-09-11 Thread Mark Byrne
New submission from Mark Byrne: To make code explicit and more readable Use the enumerate function to replace occurrences of the pattern: for i in range(len(sources)): src = sources[i] -- messages: 301871 nosy: Mark Byrne priority: normal severity: normal status: open title: Use