Mercurial > hg
diff mercurial/httprepo.py @ 5915:d0576d065993
Prefer i in d over d.has_key(i)
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Sun, 20 Jan 2008 14:39:25 +0100 |
parents | d5b9c74c910e |
children | c301f15c965a |
line wrap: on
line diff
--- 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