Mercurial > public > mercurial-scm > hg
diff hgext/logtoprocess.py @ 30638:1c5cbf28f007
py3: replace os.environ with encoding.environ (part 5 of 5)
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 18 Dec 2016 02:08:59 +0530 |
parents | 318a24b52eeb |
children | 8e7feaad2d8d |
line wrap: on
line diff
--- a/hgext/logtoprocess.py Sun Dec 18 02:06:00 2016 +0530 +++ b/hgext/logtoprocess.py Sun Dec 18 02:08:59 2016 +0530 @@ -40,6 +40,8 @@ import subprocess import sys +from mercurial import encoding + # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should # be specifying the version(s) of Mercurial they are tested with, or @@ -117,7 +119,7 @@ optpairs = ( ('OPT_{0}'.format(key.upper()), str(value)) for key, value in opts.iteritems()) - env = dict(itertools.chain(os.environ.items(), + env = dict(itertools.chain(encoding.environ.items(), msgpairs, optpairs), EVENT=event, HGPID=str(os.getpid())) # Connect stdin to /dev/null to prevent child processes messing