From 79ad65ee649e8357881c5a17a49af4e7077c238d Mon Sep 17 00:00:00 2001 From: Tarcisio Fedrizzi Date: Sat, 27 Feb 2016 12:36:13 +0100 Subject: [PATCH] Fixes flake8 errors --- qutebrowser/utils/urlutils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qutebrowser/utils/urlutils.py b/qutebrowser/utils/urlutils.py index 42f222a42..e7e2ebe97 100644 --- a/qutebrowser/utils/urlutils.py +++ b/qutebrowser/utils/urlutils.py @@ -336,11 +336,12 @@ def raise_cmdexc_if_invalid(url): if not url.isValid(): raise cmdexc.CommandError(get_errstring(url)) + def get_path_if_valid(pathstr, cwd=None, relative=False, check_exists=False): - """Check if path is a valid path + """Check if path is a valid path. Args: - pathstr: The path as string + pathstr: The path as string. Return: True if it is a valid path, False otherwise.