Mercurial > hg-stable
diff mercurial/templater.py @ 36473: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 | c6ce479f7a28 |
children | 717a279c0c21 |
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,