changeset 5915 | d0576d065993 |
parent 5526 | d5b9c74c910e |
child 5930 | c301f15c965a |
--- a/mercurial/httprepo.py Mon Jan 21 13:37:27 2008 -0200 +++ b/mercurial/httprepo.py Sun Jan 20 14:39:25 2008 +0100 @@ -247,7 +247,7 @@ # will take precedence if found, so drop them for env in ["HTTP_PROXY", "http_proxy", "no_proxy"]: try: - if os.environ.has_key(env): + if env in os.environ: del os.environ[env] except OSError: pass