From 855efcfd59034224cb16f9739c72af616af64a44 Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Fri, 7 May 2021 12:15:32 +0530 Subject: [PATCH] style: Trim whitespace and remove unnecessary parenthesis --- frappe/utils/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/utils/__init__.py b/frappe/utils/__init__.py index ccd5283b1a..c9123a4ca6 100644 --- a/frappe/utils/__init__.py +++ b/frappe/utils/__init__.py @@ -161,7 +161,7 @@ def validate_url(txt, throw=False, valid_schemes=None): Parameters: throw (`bool`): throws a validationError if URL is not valid - valid_schemes (`str` or `list`): if provided checks the given URL's scheme against this + valid_schemes (`str` or `list`): if provided checks the given URL's scheme against this Returns: bool: if `txt` represents a valid URL @@ -428,7 +428,7 @@ def get_test_client(): return Client(application) def get_hook_method(hook_name, fallback=None): - method = (frappe.get_hooks().get(hook_name)) + method = frappe.get_hooks().get(hook_name) if method: method = frappe.get_attr(method[0]) return method