util: simplify range expression
The n index variable was unused. Every iteration would pop one element
off of parts, so the for loop can be replaced with a while loop.
--- a/mercurial/util.py Tue May 26 22:09:39 2009 +0200
+++ b/mercurial/util.py Tue May 26 22:37:26 2009 +0200
@@ -512,7 +512,7 @@
(path, prefix))
parts.pop()
prefixes = []
- for n in range(len(parts)):
+ while parts:
prefix = os.sep.join(parts)
if prefix in self.auditeddir:
break