mercurial/hgweb.py
changeset 1473 7d66ce9895fa
parent 1445 56281e086f38
child 1498 78590fb4a82b
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -990,7 +990,7 @@ class hgwebdir:
             for name, path in self.repos:
                 u = ui.ui()
                 try:
-                    u.readconfig(file(os.path.join(path, '.hg', 'hgrc')))
+                    u.readconfig(os.path.join(path, '.hg', 'hgrc'))
                 except IOError:
                     pass
                 get = u.config