# HG changeset patch # User Yuya Nishihara # Date 2018-09-15 01:35:00 # Node ID 8bfbb25859f1455e908b8cff52d7ef30339a3db8 # Parent a12916cfef9efead4c37fd523556af855d4a9e4e censor: rename loop variable to silence pyflakes warning hgext/censor.py:92: list comprehension redefines 'c' from line 88 diff --git a/hgext/censor.py b/hgext/censor.py --- a/hgext/censor.py +++ b/hgext/censor.py @@ -85,9 +85,9 @@ def _docensor(ui, repo, path, rev='', to fnode = fctx.filenode() heads = [] for headnode in repo.heads(): - c = repo[headnode] - if path in c and c.filenode(path) == fnode: - heads.append(c) + hc = repo[headnode] + if path in hc and hc.filenode(path) == fnode: + heads.append(hc) if heads: headlist = ', '.join([short(c.node()) for c in heads]) raise error.Abort(_('cannot censor file in heads (%s)') % headlist,