# HG changeset patch # User Matt Mackall # Date 1440513486 18000 # Node ID 027763aed157317ef9eaba43a1382d1798813a79 # Parent b188f60bd955e10ee6f91d5dd707bb5f633d2c9c templater: minor whitespace tweaks diff -r b188f60bd955 -r 027763aed157 mercurial/cmdutil.py --- 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]))