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