Show More
@@ -29,8 +29,11 b' class hgwebdir(object):' | |||
|
29 | 29 | self.repos = cleannames(config.items()) |
|
30 | 30 | self.repos.sort() |
|
31 | 31 | else: |
|
32 |
|
|
|
33 |
cp |
|
|
32 | if isinstance(config, util.configparser): | |
|
33 | cp = config | |
|
34 | else: | |
|
35 | cp = util.configparser() | |
|
36 | cp.read(config) | |
|
34 | 37 | self.repos = [] |
|
35 | 38 | if cp.has_section('web'): |
|
36 | 39 | if cp.has_option('web', 'motd'): |
General Comments 0
You need to be logged in to leave comments.
Login now