Patchwork D3772: highlight: adjust to attribute being private

login
register
mail settings
Submitter phabricator
Date June 18, 2018, 4:58 a.m.
Message ID <0689557be010d29ee70bc4a71a254f09@localhost.localdomain>
Download mbox | patch
Permalink /patch/32233/
State Not Applicable
Headers show

Comments

phabricator - June 18, 2018, 4:58 a.m.
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

Patch

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')