Show More
@@ -64,7 +64,7 b' def revnavgen(pos, pagelen, limit, nodef' | |||||
64 |
|
64 | |||
65 | class hgweb(object): |
|
65 | class hgweb(object): | |
66 | def __init__(self, repo, name=None): |
|
66 | def __init__(self, repo, name=None): | |
67 |
if |
|
67 | if isinstance(repo, str): | |
68 | self.repo = hg.repository(ui.ui(report_untrusted=False), repo) |
|
68 | self.repo = hg.repository(ui.ui(report_untrusted=False), repo) | |
69 | else: |
|
69 | else: | |
70 | self.repo = repo |
|
70 | self.repo = repo |
@@ -504,7 +504,7 b' class coverage:' | |||||
504 | def get_suite_spots(self, tree, spots): |
|
504 | def get_suite_spots(self, tree, spots): | |
505 | import symbol, token |
|
505 | import symbol, token | |
506 | for i in range(1, len(tree)): |
|
506 | for i in range(1, len(tree)): | |
507 |
if |
|
507 | if isinstance(tree[i], tuple): | |
508 | if tree[i][0] == symbol.suite: |
|
508 | if tree[i][0] == symbol.suite: | |
509 | # Found a suite, look back for the colon and keyword. |
|
509 | # Found a suite, look back for the colon and keyword. | |
510 | lineno_colon = lineno_word = None |
|
510 | lineno_colon = lineno_word = None |
General Comments 0
You need to be logged in to leave comments.
Login now