Mercurial > hg
diff hgext/highlight/highlight.py @ 38359: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 | 670eb4fa1b86 |
children | 23dc901cdf13 |
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')