From patchwork Mon Jun 18 04:58:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3772: highlight: adjust to attribute being private From: phabricator X-Patchwork-Id: 32233 Message-Id: <0689557be010d29ee70bc4a71a254f09@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Mon, 18 Jun 2018 04:58:21 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG876352ea831e: highlight: adjust to attribute being private (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3772?vs=9141&id=9143 REVISION DETAIL https://phab.mercurial-scm.org/D3772 AFFECTED FILES hgext/highlight/highlight.py CHANGE DETAILS To: durin42, #hg-reviewers, martinvonz Cc: mercurial-devel diff --git a/hgext/highlight/highlight.py b/hgext/highlight/highlight.py --- a/hgext/highlight/highlight.py +++ b/hgext/highlight/highlight.py @@ -89,7 +89,7 @@ coloriter = (s.encode(encoding.encoding, 'replace') for s in colorized.splitlines()) - tmpl.filters['colorize'] = lambda x: next(coloriter) + tmpl._filters['colorize'] = lambda x: next(coloriter) oldl = tmpl.cache[field] newl = oldl.replace('line|escape', 'line|colorize')