Mercurial > hg
changeset 36443:8dbd97aef915
templater: move specialized exception types to top
I'm going to add one more exception type.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 25 Feb 2018 12:47:53 +0900 |
parents | e46b24582fa0 |
children | 717a279c0c21 |
files | mercurial/templater.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templater.py Sun Feb 25 14:14:33 2018 +0900 +++ b/mercurial/templater.py Sun Feb 25 12:47:53 2018 +0900 @@ -30,6 +30,9 @@ util, ) +class TemplateNotFound(error.Abort): + pass + # template parsing elements = { @@ -1465,9 +1468,6 @@ aliases.extend(conf['templatealias'].items()) return cache, tmap, aliases -class TemplateNotFound(error.Abort): - pass - class templater(object): def __init__(self, filters=None, defaults=None, resources=None,