# HG changeset patch # User Yuya Nishihara <y...@tcha.org> # Date 1519530473 -32400 # Sun Feb 25 12:47:53 2018 +0900 # Node ID 35263744d42f5a3c60faec304d044cbee337599d # Parent 0d70933cd0d82836b9117597b118d72589711118 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, _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel