mercurial/hgweb/hgweb_mod.py
changeset 6141 90e5c82a3859
parent 5995 b913d3aacddc
child 6142 50a277e6ceae
--- 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