Mercurial > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Fri Aug 15 04:37:45 2014 +0200 +++ b/mercurial/hgweb/webcommands.py Fri Aug 15 16:20:47 2014 +0200 @@ -1069,7 +1069,7 @@ topicname = req.form.get('node', [None])[0] if not topicname: def topics(**map): - for entries, summary, _ in helpmod.helptable: + for entries, summary, _doc in helpmod.helptable: yield {'topic': entries[0], 'summary': summary} early, other = [], []