Mercurial > gnulib
changeset 39027:a70896a7d3eb
vfs: do not raise error on non-existent files
author | Dmitry Selyutin <ghostmansd@gmail.com> |
---|---|
date | Wed, 04 Oct 2017 22:54:35 +0300 |
parents | f7768d4abf0b |
children | de8c069f4302 |
files | pygnulib/vfs.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/pygnulib/vfs.py Wed Oct 04 21:10:55 2017 +0300 +++ b/pygnulib/vfs.py Wed Oct 04 22:54:35 2017 +0300 @@ -74,10 +74,7 @@ part = self.__config[new] replaced = True parts += [part] - path = _os_.path.sep.join([self.__path] + parts) - if not _os_.path.exists(path): - raise FileNotFoundError(name) - return path + return _os_.path.sep.join([self.__path] + parts) @property