comparison mercurial/hgweb/webcommands.py @ 22199:b3e51675f98e

cleanup: avoid _ for local unused tmp variables - that is reserved for i18n _ is usually used for i18n markup but we also used it for I-don't-care variables. Instead, name don't-care variables in a slightly descriptive way but use the _ prefix to designate unused variable. This will mute some pyflakes "import '_' ... shadowed by loop variable" warnings.
author Mads Kiilerich <madski@unity3d.com>
date Fri, 15 Aug 2014 16:20:47 +0200
parents 92fab48dfec1
children e48a5d3996c2
comparison
equal deleted inserted replaced
22198:77142de48ae4 22199:b3e51675f98e
1067 from mercurial import commands # avoid cycle 1067 from mercurial import commands # avoid cycle
1068 1068
1069 topicname = req.form.get('node', [None])[0] 1069 topicname = req.form.get('node', [None])[0]
1070 if not topicname: 1070 if not topicname:
1071 def topics(**map): 1071 def topics(**map):
1072 for entries, summary, _ in helpmod.helptable: 1072 for entries, summary, _doc in helpmod.helptable:
1073 yield {'topic': entries[0], 'summary': summary} 1073 yield {'topic': entries[0], 'summary': summary}
1074 1074
1075 early, other = [], [] 1075 early, other = [], []
1076 primary = lambda s: s.split('|')[0] 1076 primary = lambda s: s.split('|')[0]
1077 for c, e in commands.table.iteritems(): 1077 for c, e in commands.table.iteritems():