Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb.py @ 1559:59b3639df0a9
Convert all classes to new-style classes by deriving them from object.
author | Eric Hopper <hopper@omnifarious.org> |
---|---|
date | Fri, 18 Nov 2005 22:48:47 -0800 |
parents | 68ec7b9e09a4 |
children | 385b8872b8e3 |
line wrap: on
line diff
--- a/mercurial/hgweb.py Thu Nov 17 19:38:57 2005 +0100 +++ b/mercurial/hgweb.py Fri Nov 18 22:48:47 2005 -0800 @@ -71,7 +71,7 @@ else: return os.stat(hg_path).st_mtime -class hgrequest: +class hgrequest(object): def __init__(self, inp=None, out=None, env=None): self.inp = inp or sys.stdin self.out = out or sys.stdout @@ -104,7 +104,7 @@ headers.append(('Content-length', str(size))) self.header(headers) -class templater: +class templater(object): def __init__(self, mapfile, filters={}, defaults={}): self.cache = {} self.map = {} @@ -175,7 +175,7 @@ "rfc822date": lambda x: util.datestr(x, "%a, %d %b %Y %H:%M:%S"), } -class hgweb: +class hgweb(object): def __init__(self, repo, name=None): if type(repo) == type(""): self.repo = hg.repository(ui.ui(), repo) @@ -952,7 +952,7 @@ return BaseHTTPServer.HTTPServer((address, port), hgwebhandler) # This is a stopgap -class hgwebdir: +class hgwebdir(object): def __init__(self, config): def cleannames(items): return [(name.strip('/'), path) for name, path in items]