mercurial/pure/osutil.py
changeset 34645 75979c8d4572
parent 32512 0e8b0b9a7acc
child 38783 e7aa113b14f7
--- a/mercurial/pure/osutil.py	Thu Oct 12 19:20:04 2017 -0700
+++ b/mercurial/pure/osutil.py	Thu Oct 12 23:30:46 2017 -0700
@@ -64,7 +64,7 @@
             result.append((fn, _mode_to_kind(st.st_mode)))
     return result
 
-if pycompat.osname != 'nt':
+if not pycompat.iswindows:
     posixfile = open
 
     _SCM_RIGHTS = 0x01