##// END OF EJS Templates
config: use the right API to access template access...
marmoute -
r47152:52725421 default
parent child Browse files
Show More
@@ -891,7 +891,7 b' def _readmapfile(fp, mapfile):'
891 fp = _open_mapfile(path)
891 fp = _open_mapfile(path)
892 cache, tmap, aliases = _readmapfile(fp, path)
892 cache, tmap, aliases = _readmapfile(fp, path)
893
893
894 for key, val in conf[b'templates'].items():
894 for key, val in conf.items(b'templates'):
895 if not val:
895 if not val:
896 raise error.ParseError(
896 raise error.ParseError(
897 _(b'missing value'), conf.source(b'templates', key)
897 _(b'missing value'), conf.source(b'templates', key)
@@ -904,7 +904,7 b' def _readmapfile(fp, mapfile):'
904 cache[key] = unquotestring(val)
904 cache[key] = unquotestring(val)
905 elif key != b'__base__':
905 elif key != b'__base__':
906 tmap[key] = os.path.join(base, val)
906 tmap[key] = os.path.join(base, val)
907 aliases.extend(conf[b'templatealias'].items())
907 aliases.extend(conf.items(b'templatealias'))
908 return cache, tmap, aliases
908 return cache, tmap, aliases
909
909
910
910
General Comments 0
You need to be logged in to leave comments. Login now