Mercurial > hg
diff mercurial/scmutil.py @ 30109:96a2278ee732
py3: use encoding.environ instead of os.environ
This complains while running hg version on Python 3.5
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 09 Oct 2016 12:37:10 +0200 |
parents | 9766d88c2465 |
children | af7c60988f6e bff5ccbe5ead |
line wrap: on
line diff
--- a/mercurial/scmutil.py Sun Oct 09 12:58:22 2016 +0200 +++ b/mercurial/scmutil.py Sun Oct 09 12:37:10 2016 +0200 @@ -753,7 +753,7 @@ if no HGRCPATH, use default os-specific path.''' global _rcpath if _rcpath is None: - if 'HGRCPATH' in os.environ: + if 'HGRCPATH' in encoding.environ: _rcpath = [] for p in os.environ['HGRCPATH'].split(os.pathsep): if not p: