comparison mercurial/templater.py @ 8223:02145b700fe4

templater: fix little problem from stylemap() changes
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Mon, 27 Apr 2009 16:26:31 +0200
parents e61cb2813d2a
children 46293a0c7e9f
comparison
equal deleted inserted replaced
8222:d30a21594812 8223:02145b700fe4
194 """ 194 """
195 195
196 if paths is None: 196 if paths is None:
197 paths = templatepath() 197 paths = templatepath()
198 elif isinstance(paths, str): 198 elif isinstance(paths, str):
199 paths = [templatepath] 199 paths = [paths]
200 200
201 locations = style and [os.path.join(style, "map"), "map-" + style] or [] 201 locations = style and [os.path.join(style, "map"), "map-" + style] or []
202 locations.append("map") 202 locations.append("map")
203 for path in paths: 203 for path in paths:
204 for location in locations: 204 for location in locations: