templater: move specialized exception types to top
I'm going to add one more exception type.
--- 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,