mercurial/i18n.py
changeset 30639 d524c88511a7
parent 30301 8321b083a83d
child 30669 10b17ed9b591
--- 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