# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1476009430 -7200 # Node ID 96a2278ee73278b48a9d5298f524943a8d2156de # Parent e1e7190457cfd6967abf5313998fb788620ad86f py3: use encoding.environ instead of os.environ This complains while running hg version on Python 3.5 diff -r e1e7190457cf -r 96a2278ee732 mercurial/scmutil.py --- 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: