##// END OF EJS Templates
hgwebdir: class hgwebdir should also accept a configparser instance
Michael Gebetsroither -
r4051:02205626 default
parent child Browse files
Show More
@@ -29,6 +29,9 class hgwebdir(object):
29 self.repos = cleannames(config.items())
29 self.repos = cleannames(config.items())
30 self.repos.sort()
30 self.repos.sort()
31 else:
31 else:
32 if isinstance(config, util.configparser):
33 cp = config
34 else:
32 cp = util.configparser()
35 cp = util.configparser()
33 cp.read(config)
36 cp.read(config)
34 self.repos = []
37 self.repos = []
General Comments 0
You need to be logged in to leave comments. Login now