Mercurial > genshi > mirror
comparison genshi/template/loader.py @ 724:919809e55d16 experimental-match-fastpaths
update to trunk to track r847, fixing python 2.4 compatibility issues in speedup (and fixing copyrights, apparently :))
author | aflett |
---|---|
date | Mon, 21 Apr 2008 19:36:53 +0000 |
parents | d143dd73789b |
children | ea46fb523485 |
comparison
equal
deleted
inserted
replaced
718:d143dd73789b | 724:919809e55d16 |
---|---|
1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
2 # | 2 # |
3 # Copyright (C) 2006-2007 Edgewall Software | 3 # Copyright (C) 2006-2008 Edgewall Software |
4 # All rights reserved. | 4 # All rights reserved. |
5 # | 5 # |
6 # This software is licensed as described in the file COPYING, which | 6 # This software is licensed as described in the file COPYING, which |
7 # you should have received as part of this distribution. The terms | 7 # you should have received as part of this distribution. The terms |
8 # are also available at http://genshi.edgewall.org/wiki/License. | 8 # are also available at http://genshi.edgewall.org/wiki/License. |
176 if not self.auto_reload: | 176 if not self.auto_reload: |
177 return tmpl | 177 return tmpl |
178 uptodate = self._uptodate[cachekey] | 178 uptodate = self._uptodate[cachekey] |
179 if uptodate is not None and uptodate(): | 179 if uptodate is not None and uptodate(): |
180 return tmpl | 180 return tmpl |
181 except KeyError, OSError: | 181 except (KeyError, OSError): |
182 pass | 182 pass |
183 | 183 |
184 search_path = self.search_path | 184 search_path = self.search_path |
185 isabs = False | 185 isabs = False |
186 | 186 |