diff hgext/win32mbcs.py @ 30645:7a3e67bfa417

py3: replace os.name with pycompat.osname (part 2 of 2)
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 19 Dec 2016 00:28:12 +0530
parents 6f9fcd29e290
children e995f00a9e9a
line wrap: on
line diff
--- a/hgext/win32mbcs.py	Mon Dec 19 00:16:52 2016 +0530
+++ b/hgext/win32mbcs.py	Mon Dec 19 00:28:12 2016 +0530
@@ -179,7 +179,7 @@
     if _encoding.lower() in problematic_encodings.split():
         for f in funcs.split():
             wrapname(f, wrapper)
-        if os.name == 'nt':
+        if pycompat.osname == 'nt':
             for f in winfuncs.split():
                 wrapname(f, wrapper)
         wrapname("mercurial.osutil.listdir", wrapperforlistdir)