# HG changeset patch # User Peter Arrenbrecht # Date 2009-03-23 12:13:11 # Node ID 53c72ba36c2b4d6c30995e1b67ae929a2bba738d # Parent 553aa0cbeab67b379f4265fee6f1737d30730ac3 cleanup: drop enumerate() when index is not used diff --git a/mercurial/extensions.py b/mercurial/extensions.py --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -68,7 +68,7 @@ def load(ui, name, path): def loadall(ui): result = ui.configitems("extensions") - for i, (name, path) in enumerate(result): + for (name, path) in result: if path: if path[0] == '!': continue diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -642,7 +642,7 @@ def graph(web, req, tmpl): tree = list(graphmod.graph(web.repo, rev, downrev)) canvasheight = (len(tree) + 1) * bg_height - 27; data = [] - for i, (ctx, vtx, edges) in enumerate(tree): + for (ctx, vtx, edges) in tree: node = short(ctx.node()) age = templatefilters.age(ctx.date()) desc = templatefilters.firstline(ctx.description())