Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmwindows.py @ 30642:344e68882cd3
py3: replace os.environ with encoding.environ (part 4 of 5)
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 18 Dec 2016 02:06:00 +0530 |
parents | d623cc6b3742 |
children | bf5e13e38390 |
line wrap: on
line diff
--- a/mercurial/scmwindows.py Sun Dec 18 01:54:36 2016 +0530 +++ b/mercurial/scmwindows.py Sun Dec 18 02:06:00 2016 +0530 @@ -3,6 +3,7 @@ import os from . import ( + encoding, osutil, pycompat, util, @@ -48,7 +49,7 @@ home = os.path.expanduser('~') path = [os.path.join(home, 'mercurial.ini'), os.path.join(home, '.hgrc')] - userprofile = os.environ.get('USERPROFILE') + userprofile = encoding.environ.get('USERPROFILE') if userprofile and userprofile != home: path.append(os.path.join(userprofile, 'mercurial.ini')) path.append(os.path.join(userprofile, '.hgrc'))