Mercurial > hg
changeset 1162:91db1c90b20d
Use local generated env instead of os.environ
author | Vincent Wagelaar <vincent@ricardis.tudelft.nl> |
---|---|
date | Tue, 30 Aug 2005 16:33:04 +0200 |
parents | 7654d8f2ccf6 |
children | dacd3463ee3f |
files | mercurial/hgweb.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb.py Tue Aug 30 16:25:46 2005 +0200 +++ b/mercurial/hgweb.py Tue Aug 30 16:33:04 2005 +0200 @@ -908,11 +908,9 @@ accept = accept + line[7:].split(',') env['HTTP_ACCEPT'] = ','.join(accept) - os.environ.update(env) - save = sys.argv, sys.stdin, sys.stdout, sys.stderr try: - req = hgrequest(self.rfile, self.wfile, os.environ) + req = hgrequest(self.rfile, self.wfile, env) sys.argv = ["hgweb.py"] if '=' not in query: sys.argv.append(query)