Mercurial > public > mercurial-scm > hg-stable
diff mercurial/i18n.py @ 30644:d524c88511a7
py3: replace os.name with pycompat.osname (part 1 of 2)
os.name returns unicodes on py3 and we have pycompat.osname which returns
bytes. This series of 2 patches will change every ocurrence of os.name with
pycompat.osname.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 19 Dec 2016 00:16:52 +0530 |
parents | 8321b083a83d |
children | 10b17ed9b591 |
line wrap: on
line diff
--- a/mercurial/i18n.py Sun Dec 18 02:08:59 2016 +0530 +++ b/mercurial/i18n.py Mon Dec 19 00:16:52 2016 +0530 @@ -29,7 +29,7 @@ unicode = str _languages = None -if (os.name == 'nt' +if (pycompat.osname == 'nt' and 'LANGUAGE' not in encoding.environ and 'LC_ALL' not in encoding.environ and 'LC_MESSAGES' not in encoding.environ