changeset 30636 | f1c9fafcbf46 |
parent 29729 | 44ea12756fef |
child 30662 | 69459fdf3b1b |
--- a/mercurial/url.py Sun Dec 18 01:46:39 2016 +0530 +++ b/mercurial/url.py Sun Dec 18 01:54:36 2016 +0530 @@ -15,6 +15,7 @@ from .i18n import _ from . import ( + encoding, error, httpconnection as httpconnectionmod, keepalive, @@ -118,8 +119,8 @@ if ui.config("http_proxy", "host"): for env in ["HTTP_PROXY", "http_proxy", "no_proxy"]: try: - if env in os.environ: - del os.environ[env] + if env in encoding.environ: + del encoding.environ[env] except OSError: pass