highlight: adjust to attribute being private
Differential Revision: https://phab.mercurial-scm.org/D3772
--- 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')