From 57bca3620eb5ccd941726e358b3b4c6c9db33072 Mon Sep 17 00:00:00 2001 From: Itamar Friedman Date: Wed, 12 Apr 2023 23:04:43 +0300 Subject: [PATCH] minor style --- scripts/browse.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/browse.py b/scripts/browse.py index 912d5635e2..78fe4ae252 100644 --- a/scripts/browse.py +++ b/scripts/browse.py @@ -6,7 +6,6 @@ from urllib.parse import urlparse, urljoin cfg = Config() - # Function to check if the URL is valid def is_valid_url(url): try: @@ -21,7 +20,6 @@ def sanitize_url(url): # Define and check for local file address prefixes def check_local_file_access(url): - # Define and check for local file address prefixes local_prefixes = ['file:///', 'file://localhost', 'http://localhost', 'https://localhost'] return any(url.startswith(prefix) for prefix in local_prefixes)