changeset 38365:876352ea831e

highlight: adjust to attribute being private Differential Revision: https://phab.mercurial-scm.org/D3772
author Augie Fackler <raf@durin42.com>
date Sun, 17 Jun 2018 23:00:08 -0400
parents 57dc72b56b6c
children c1fca51c26f3
files hgext/highlight/highlight.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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')