From d1e7f31899c35911f23c82d9f203c0e4195d1a67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 6 Jun 2023 23:28:40 +0200 Subject: [PATCH] Continued: - ops, I have not removed this one --- fba/fba.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/fba/fba.py b/fba/fba.py index c376a04..da9c693 100644 --- a/fba/fba.py +++ b/fba/fba.py @@ -284,23 +284,6 @@ def strip_until(software: str, until: str) -> str: # DEBUG: print(f"DEBUG: software='{software}' - EXIT!") return software -def blacklist.is_blacklisted(domain: str) -> bool: - # DEBUG: print(f"DEBUG: domain='{domain}' - CALLED!") - if type(domain) != str: - raise ValueError(f"Parameter domain[]={type(domain)} is not 'str'") - elif domain == "": - raise ValueError(f"Parameter 'domain' is empty") - - blacklisted = False - for peer in blacklist: - # DEBUG: print(f"DEBUG: Checking peer='{peer}' ...") - if peer in domain: - # DEBUG: print(f"DEBUG: domain='{domain}' is blacklisted.") - blacklisted = True - - # DEBUG: print(f"DEBUG: blacklisted='{blacklisted}' - EXIT!") - return blacklisted - def remove_pending_error(domain: str): if type(domain) != str: raise ValueError(f"Parameter domain[]={type(domain)} is not 'str'") -- 2.39.5