--- a/hgkw/keyword.py Tue Jan 16 03:14:40 2007 +0100
+++ b/hgkw/keyword.py Tue Jan 16 05:02:38 2007 +0100
@@ -93,10 +93,8 @@
def __init__(self, ui, repo):
self.ui = ui
self.repo = repo
- templates = {}
- for k, v in self.ui.configitems('keywordmaps'):
- templates[k] = v
- self.templates = templates or deftemplates
+ self.templates = (dict(self.ui.configitems('keywordmaps'))
+ or deftemplates)
self.re_kw = re.compile(r'\$(%s)[^$]*?\$' %
'|'.join(re.escape(k) for k in self.templates.keys()))
self.t = cmdutil.changeset_templater(self.ui, self.repo,