hgkw/keyword.py
branchkwmap-templates
changeset 153 7e97ea52335a
parent 152 7ca8e7661609
child 155 b62dacbd2166
--- a/hgkw/keyword.py	Thu Mar 01 10:22:16 2007 +0100
+++ b/hgkw/keyword.py	Wed Mar 07 23:39:55 2007 +0100
@@ -139,7 +139,7 @@
                         quoted=False)
         self.templates = templates or deftemplates
         self.re_kw = re.compile(r'\$(%s)[^$]*?\$' %
-                '|'.join(re.escape(k) for k in self.templates.keys()))
+                '|'.join([re.escape(k) for k in self.templates.keys()]))
         templater.common_filters['utcdate'] = utcdate
         try:
             self.t = cmdutil.changeset_templater(ui, repo,