mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
Saving sys.argv and sys.stderr is not needed anymore
This commit is contained in:
parent
e86a041e73
commit
ab4559b9f1
@ -908,16 +908,9 @@ def create_server(repo):
|
||||
accept = accept + line[7:].split(',')
|
||||
env['HTTP_ACCEPT'] = ','.join(accept)
|
||||
|
||||
save = sys.argv, sys.stderr
|
||||
try:
|
||||
req = hgrequest(self.rfile, self.wfile, env)
|
||||
sys.argv = ["hgweb.py"]
|
||||
if '=' not in query:
|
||||
sys.argv.append(query)
|
||||
self.send_response(200, "Script output follows")
|
||||
hg.run(req)
|
||||
finally:
|
||||
sys.argv, sys.stderr = save
|
||||
req = hgrequest(self.rfile, self.wfile, env)
|
||||
self.send_response(200, "Script output follows")
|
||||
hg.run(req)
|
||||
|
||||
hg = hgweb(repo)
|
||||
if use_ipv6:
|
||||
|
Loading…
Reference in New Issue
Block a user