templater: move specialized exception types to top
authorYuya Nishihara <yuya@tcha.org>
Sun, 25 Feb 2018 12:47:53 +0900
changeset 36473 8dbd97aef915
parent 36472 e46b24582fa0
child 36474 717a279c0c21
templater: move specialized exception types to top I'm going to add one more exception type.
mercurial/templater.py
--- 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,