Simplify reversed for-loop.

llvm-svn: 171998
This commit is contained in:
Daniel Jasper 2013-01-09 20:46:42 +00:00
parent 41d9dc56d3
commit abf4cce40f
1 changed files with 2 additions and 4 deletions

View File

@ -106,10 +106,8 @@ def main():
ranges.append((filename, int(match.group(1)), line_count))
# Reverse the ranges so that the reformatting does not influence file offsets.
ranges.reverse()
# Do the actual formatting.
for r in ranges:
for r in reversed(ranges):
# Do the actual formatting.
formatRange(r, args.style)