Patchwork D3772: highlight: adjust to attribute being private

login
register
mail settings
Submitter phabricator
Date June 18, 2018, 3:14 a.m.
Message ID <differential-rev-PHID-DREV-tegdemm47ffcqza2bdtx-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/32231/
State Superseded
Headers show

Comments

phabricator - June 18, 2018, 3:14 a.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3772

AFFECTED FILES
  hgext/highlight/highlight.py

CHANGE DETAILS




To: durin42, #hg-reviewers
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')