# HG changeset patch # User Yuya Nishihara # Date 2018-02-25 03:47:53 # Node ID 8dbd97aef9157627cf11cd6d5083913765c79bf4 # Parent e46b24582fa067dcd5d2189115d3db30c00a3cad templater: move specialized exception types to top I'm going to add one more exception type. diff --git a/mercurial/templater.py b/mercurial/templater.py --- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -30,6 +30,9 @@ from . import ( util, ) +class TemplateNotFound(error.Abort): + pass + # template parsing elements = { @@ -1465,9 +1468,6 @@ def _readmapfile(mapfile): 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,