Removing unnecessary path checks.
Signed-off-by: Kamil Jerabek kjerabek@redhat.com --- lnst/Common/Path.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lnst/Common/Path.py b/lnst/Common/Path.py index fe7f709..ebbbcf8 100644 --- a/lnst/Common/Path.py +++ b/lnst/Common/Path.py @@ -20,10 +20,7 @@ def get_path_class(root, path): if path.startswith('http'): return HttpPath(root, path) else: - if os.access(path, os.R_OK): - return FilePath(None, os.path.realpath(path)) - else: - raise Exception("Path does not exist "%s"!" % path) + return FilePath(None, os.path.realpath(path))
if root.startswith('http'): return HttpPath(root, path)
On Sun, Oct 22, 2017 at 02:57:21PM +0200, Kamil Jerabek wrote:
Removing unnecessary path checks.
Signed-off-by: Kamil Jerabek kjerabek@redhat.com
lnst/Common/Path.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lnst/Common/Path.py b/lnst/Common/Path.py index fe7f709..ebbbcf8 100644 --- a/lnst/Common/Path.py +++ b/lnst/Common/Path.py @@ -20,10 +20,7 @@ def get_path_class(root, path): if path.startswith('http'): return HttpPath(root, path) else:
if os.access(path, os.R_OK):
return FilePath(None, os.path.realpath(path))
else:
raise Exception("Path does not exist \"%s\"!" % path)
return FilePath(None, os.path.realpath(path))
if root.startswith('http'): return HttpPath(root, path)
-- 2.5.5 _______________________________________________ LNST-developers mailing list -- lnst-developers@lists.fedorahosted.org To unsubscribe send an email to lnst-developers-leave@lists.fedorahosted.org
pushed to next, thanks -Ondrej
lnst-developers@lists.fedorahosted.org