Apply black+isort

This commit is contained in:
funilrys
2021-03-31 14:57:56 +02:00
parent 7971a0cbc9
commit 4b1a939668
2 changed files with 25 additions and 10 deletions

View File

@@ -32,8 +32,10 @@ if not PY3:
try:
import requests
except ImportError:
raise ImportError("This project's dependencies have changed. The Requests library ("
"https://requests.readthedocs.io/en/master/) is now required.")
raise ImportError(
"This project's dependencies have changed. The Requests library ("
"https://requests.readthedocs.io/en/master/) is now required."
)
# Syntactic sugar for "sudo" command in UNIX / Linux
@@ -986,7 +988,9 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
and spacing reformatted.
"""
def normalize_response(extracted_hostname: str, extracted_suffix: Optional[str]) -> Tuple[str, str]:
def normalize_response(
extracted_hostname: str, extracted_suffix: Optional[str]
) -> Tuple[str, str]:
"""
Normalizes the responses after the provision of the extracted
hostname and suffix - if exist.
@@ -1342,8 +1346,9 @@ def flush_dns_cache():
)
if os.path.isfile(service_file):
if 0 != subprocess.call([systemctl, "status", service],
stdout=subprocess.DEVNULL):
if 0 != subprocess.call(
[systemctl, "status", service], stdout=subprocess.DEVNULL
):
continue
dns_cache_found = True