##// END OF EJS Templates
opener: use posixfile to hold file open when calling nlinks()...
Adrian Buehlmann -
r13342:2dc7a2a9 default
parent child Browse files
Show More
@@ -742,7 +742,7 b' def checknlink(testfile):'
742
742
743 # nlinks() may behave differently for files on Windows shares if
743 # nlinks() may behave differently for files on Windows shares if
744 # the file is open.
744 # the file is open.
745 fd = open(f2)
745 fd = posixfile(f2)
746 return nlinks(f2) > 1
746 return nlinks(f2) > 1
747 finally:
747 finally:
748 if fd is not None:
748 if fd is not None:
@@ -916,7 +916,7 b' class opener(object):'
916 else:
916 else:
917 # nlinks() may behave differently for files on Windows
917 # nlinks() may behave differently for files on Windows
918 # shares if the file is open.
918 # shares if the file is open.
919 fd = open(f)
919 fd = posixfile(f)
920 nlink = nlinks(f)
920 nlink = nlinks(f)
921 if nlink < 1:
921 if nlink < 1:
922 nlink = 2 # force mktempcopy (issue1922)
922 nlink = 2 # force mktempcopy (issue1922)
General Comments 0
You need to be logged in to leave comments. Login now