Mercurial > hg-stable
changeset 7876:53c72ba36c2b
cleanup: drop enumerate() when index is not used
author | Peter Arrenbrecht <peter.arrenbrecht@gmail.com> |
---|---|
date | Mon, 23 Mar 2009 13:13:11 +0100 |
parents | 553aa0cbeab6 |
children | eba7f12b0c51 |
files | mercurial/extensions.py mercurial/hgweb/webcommands.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/extensions.py Mon Mar 23 13:13:06 2009 +0100 +++ b/mercurial/extensions.py Mon Mar 23 13:13:11 2009 +0100 @@ -68,7 +68,7 @@ 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
--- a/mercurial/hgweb/webcommands.py Mon Mar 23 13:13:06 2009 +0100 +++ b/mercurial/hgweb/webcommands.py Mon Mar 23 13:13:11 2009 +0100 @@ -642,7 +642,7 @@ 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())