hgkw/keyword.py
changeset 254 474eccf2964f
parent 253 22e08d0f25dc
child 255 c4f37735be9b
--- a/hgkw/keyword.py	Thu Oct 04 15:01:16 2007 +0200
+++ b/hgkw/keyword.py	Thu Oct 04 16:12:48 2007 +0200
@@ -172,7 +172,7 @@
             kwmaps = [(k, templater.parsestring(v, quoted=False))
                       for (k, v) in kwmaps]
             self.templates = dict(kwmaps)
-        escaped = [re.escape(k) for k in self.templates.keys()]
+        escaped = map(re.escape, self.templates.keys())
         kwpat = r'\$(%s)(: [^$\n\r]*? )??\$' % '|'.join(escaped)
         self.re_kw = re.compile(kwpat)
         if self.t: