changeset 4051 | 022056263354 |
parent 3887 | 79e5a6e7c451 |
child 4081 | e6d26e71f049 |
--- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -29,8 +29,11 @@ class hgwebdir(object): self.repos = cleannames(config.items()) self.repos.sort() else: - cp = util.configparser() - cp.read(config) + if isinstance(config, util.configparser): + cp = config + else: + cp = util.configparser() + cp.read(config) self.repos = [] if cp.has_section('web'): if cp.has_option('web', 'motd'):