Mercurial > hg
changeset 26083:027763aed157
templater: minor whitespace tweaks
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 25 Aug 2015 09:38:06 -0500 |
parents | b188f60bd955 |
children | b029d029354a |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon Aug 24 13:26:10 2015 -0500 +++ b/mercurial/cmdutil.py Tue Aug 25 09:38:06 2015 -0500 @@ -1441,7 +1441,6 @@ props['cache'] = self.cache # find correct templates for current mode - tmplmodes = [ (True, None), (self.ui.verbose, 'verbose'), @@ -1449,15 +1448,14 @@ (self.ui.debugflag, 'debug'), ] - types = {'header': '', 'footer':'', 'changeset': 'changeset'} - for mode, postfix in tmplmodes: + types = {'header': '', 'footer': '', 'changeset': 'changeset'} + for mode, postfix in tmplmodes: for type in types: cur = postfix and ('%s_%s' % (type, postfix)) or type if mode and cur in self.t: types[type] = cur try: - # write header if types['header']: h = templater.stringify(self.t(types['header'], **props)) @@ -1477,7 +1475,6 @@ if not self.footer: self.footer = templater.stringify(self.t(types['footer'], **props)) - except KeyError as inst: msg = _("%s: no key named '%s'") raise util.Abort(msg % (self.t.mapfile, inst.args[0]))