Mercurial > genshi > genshi-test
diff markup/template.py @ 133:b9a0031d4bbb
Minor cleanup and performance improvement for the builder module.
author | cmlenz |
---|---|
date | Sun, 06 Aug 2006 17:10:47 +0000 |
parents | eb6cead67474 |
children | df44110ca91d |
line wrap: on
line diff
--- a/markup/template.py +++ b/markup/template.py @@ -1064,7 +1064,7 @@ for dirname in search_path: filepath = os.path.join(dirname, filename) try: - fileobj = file(filepath, 'rt') + fileobj = open(filepath, 'U') try: tmpl = Template(fileobj, basedir=dirname, filename=filename) tmpl.filters.append(IncludeFilter(self))