highlight: adjust to attribute being private
authorAugie Fackler <raf@durin42.com>
Sun, 17 Jun 2018 23:00:08 -0400
changeset 38359 876352ea831e
parent 38358 57dc72b56b6c
child 38360 c1fca51c26f3
highlight: adjust to attribute being private Differential Revision: https://phab.mercurial-scm.org/D3772
hgext/highlight/highlight.py
--- a/hgext/highlight/highlight.py	Thu May 03 12:04:36 2018 +0900
+++ b/hgext/highlight/highlight.py	Sun Jun 17 23:00:08 2018 -0400
@@ -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')