+  # Reverse the ranges so that the reformatting does not influence
file offsets.
+  ranges.reverse()
+
+  # Do the actual formatting.
+  for r in ranges:

you can simplify this to

for r in reversed(ranges):

-- Sean Silva
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to