Mercurial > hg-stable
diff mercurial/sshserver.py @ 30640:a150173da1c1
py3: replace os.environ with encoding.environ (part 2 of 5)
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 18 Dec 2016 01:46:39 +0530 |
parents | b3a9ef3d30e8 |
children | 5326e4ef1dab |
line wrap: on
line diff
--- a/mercurial/sshserver.py Sun Dec 18 01:34:41 2016 +0530 +++ b/mercurial/sshserver.py Sun Dec 18 01:46:39 2016 +0530 @@ -8,11 +8,11 @@ from __future__ import absolute_import -import os import sys from .i18n import _ from . import ( + encoding, error, hook, util, @@ -131,5 +131,5 @@ return cmd != '' def _client(self): - client = os.environ.get('SSH_CLIENT', '').split(' ', 1)[0] + client = encoding.environ.get('SSH_CLIENT', '').split(' ', 1)[0] return 'remote:ssh:' + client