changeset 14168 | 135e244776f0 |
parent 13665 | e798e430c5e5 |
child 14925 | ab545a15d807 |
--- a/mercurial/templater.py Mon May 02 10:11:05 2011 +0200 +++ b/mercurial/templater.py Mon May 02 10:11:18 2011 +0200 @@ -311,7 +311,7 @@ '''Get the template for the given template name. Use a local cache.''' if not t in self.cache: try: - self.cache[t] = open(self.map[t][1]).read() + self.cache[t] = util.readfile(self.map[t][1]) except KeyError, inst: raise util.Abort(_('"%s" not in template map') % inst.args[0]) except IOError, inst: