Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgwebdir_mod.py @ 5760:0145f9afb0e7
Removed tabs and trailing whitespace in python files
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sat, 29 Dec 2007 19:49:48 +0100 |
parents | 74f65f44a9aa |
children | e9f68860d5ed |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Sat Dec 29 01:14:45 2007 +0100 +++ b/mercurial/hgweb/hgwebdir_mod.py Sat Dec 29 19:49:48 2007 +0100 @@ -75,7 +75,7 @@ try: virtual = req.env.get("PATH_INFO", "").strip('/') - + # a static file if virtual.startswith('static/') or 'static' in req.form: static = os.path.join(templater.templatepath(), 'static') @@ -122,7 +122,7 @@ # prefixes not found tmpl = self.templater(req) req.respond(404, tmpl("notfound", repo=virtual)) - + except ErrorResponse, err: tmpl = self.templater(req) req.respond(err.code, tmpl('error', error=err.message or '')) @@ -173,7 +173,7 @@ parts = [req.env['PATH_INFO'], name] if req.env['SCRIPT_NAME']: - parts.insert(0, req.env['SCRIPT_NAME']) + parts.insert(0, req.env['SCRIPT_NAME']) url = ('/'.join(parts).replace("//", "/")) + '/' # update time with local timezone