##// END OF EJS Templates
cleanup: drop enumerate() when index is not used
Peter Arrenbrecht -
r7876:53c72ba3 default
parent child Browse files
Show More
@@ -68,7 +68,7 def load(ui, name, path):
68
68
69 def loadall(ui):
69 def loadall(ui):
70 result = ui.configitems("extensions")
70 result = ui.configitems("extensions")
71 for i, (name, path) in enumerate(result):
71 for (name, path) in result:
72 if path:
72 if path:
73 if path[0] == '!':
73 if path[0] == '!':
74 continue
74 continue
@@ -642,7 +642,7 def graph(web, req, tmpl):
642 tree = list(graphmod.graph(web.repo, rev, downrev))
642 tree = list(graphmod.graph(web.repo, rev, downrev))
643 canvasheight = (len(tree) + 1) * bg_height - 27;
643 canvasheight = (len(tree) + 1) * bg_height - 27;
644 data = []
644 data = []
645 for i, (ctx, vtx, edges) in enumerate(tree):
645 for (ctx, vtx, edges) in tree:
646 node = short(ctx.node())
646 node = short(ctx.node())
647 age = templatefilters.age(ctx.date())
647 age = templatefilters.age(ctx.date())
648 desc = templatefilters.firstline(ctx.description())
648 desc = templatefilters.firstline(ctx.description())
General Comments 0
You need to be logged in to leave comments. Login now