mercurial/pure/osutil.py
changeset 30639 d524c88511a7
parent 30304 ba2c04059317
child 30642 e995f00a9e9a
--- a/mercurial/pure/osutil.py	Sun Dec 18 02:08:59 2016 +0530
+++ b/mercurial/pure/osutil.py	Mon Dec 19 00:16:52 2016 +0530
@@ -159,7 +159,7 @@
 else:
     listdir = listdirpure
 
-if os.name != 'nt':
+if pycompat.osname != 'nt':
     posixfile = open
 
     _SCM_RIGHTS = 0x01