changeset 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 e1e7190457cf
children 79f438f5dd02
files mercurial/scmutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: