Make keyword extension compatible with python2.3 kwmap-templates
authorThomas Arendsen Hein <thomas@intevation.de>
Wed, 07 Mar 2007 23:39:55 +0100
branchkwmap-templates
changeset 153 7e97ea52335a
parent 152 7ca8e7661609
child 154 1e856223aa06
Make keyword extension compatible with python2.3
hgkw/keyword.py
--- 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,