##// END OF EJS Templates
vfs: use checkambigatclosing in checkambig=True but atomictemp=False case...
FUJIWARA Katsunori -
r29996:9766d88c default
parent child Browse files
Show More
@@ -587,6 +587,12 b' class vfs(abstractvfs):'
587 if nlink == 0:
587 if nlink == 0:
588 self._fixfilemode(f)
588 self._fixfilemode(f)
589
589
590 if checkambig:
591 if mode in ('r', 'rb'):
592 raise error.Abort(_('implementation error: mode %s is not'
593 ' valid for checkambig=True') % mode)
594 fp = checkambigatclosing(fp)
595
590 if backgroundclose:
596 if backgroundclose:
591 if not self._backgroundfilecloser:
597 if not self._backgroundfilecloser:
592 raise error.Abort(_('backgroundclose can only be used when a '
598 raise error.Abort(_('backgroundclose can only be used when a '
General Comments 0
You need to be logged in to leave comments. Login now