changeset 26084:b029d029354a

templater: fix variable name that shadows built-in
author Matt Mackall <mpm@selenic.com>
date Tue, 25 Aug 2015 12:57:21 -0500
parents 027763aed157
children 1de0b66b65c5
files mercurial/cmdutil.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Tue Aug 25 09:38:06 2015 -0500
+++ b/mercurial/cmdutil.py	Tue Aug 25 12:57:21 2015 -0500
@@ -1450,10 +1450,10 @@
 
         types = {'header': '', 'footer': '', 'changeset': 'changeset'}
         for mode, postfix in tmplmodes:
-            for type in types:
-                cur = postfix and ('%s_%s' % (type, postfix)) or type
+            for t in types:
+                cur = postfix and ('%s_%s' % (t, postfix)) or t
                 if mode and cur in self.t:
-                    types[type] = cur
+                    types[t] = cur
 
         try:
             # write header