py3: use encoding.environ instead of os.environ
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 09 Oct 2016 12:37:10 +0200
changeset 30109 96a2278ee732
parent 30108 e1e7190457cf
child 30110 79f438f5dd02
py3: use encoding.environ instead of os.environ This complains while running hg version on Python 3.5
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: