diff -r b913d3aacddc -r 90e5c82a3859 mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Fri Feb 01 13:09:45 2008 -0800 +++ b/mercurial/hgweb/hgweb_mod.py Mon Feb 18 19:20:22 2008 +0100 @@ -79,10 +79,9 @@ return nav class hgweb(object): - def __init__(self, repo, name=None, parentui=None): + def __init__(self, repo, name=None): if isinstance(repo, str): - parentui = (parentui or - ui.ui(report_untrusted=False, interactive=False)) + parentui = ui.ui(report_untrusted=False, interactive=False) self.repo = hg.repository(parentui, repo) else: self.repo = repo