flake8: formatting issues

This commit is contained in:
Iain Learmonth 2022-08-12 11:46:10 +01:00
parent b2de15b705
commit a808b84bec
2 changed files with 5 additions and 4 deletions

View file

@ -18,8 +18,9 @@ class BlockBridgeDnscAutomation(BlockBridgeAutomation):
_content: BinaryIO
def fetch(self):
response = requests.get(DOWNLOAD_URL, headers=
{"User-Agent": "Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) Gecko/20100101 Firefox/10.0"})
response = requests.get(DOWNLOAD_URL,
headers={"User-Agent": "Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) "
"Gecko/20100101 Firefox/10.0"})
self._content = BytesIO(response.content)
def parse(self) -> None:

View file

@ -20,6 +20,6 @@ class BlockBridgeGitHubAutomation(BlockBridgeReachabilityAutomation):
contents = repo.get_contents(f"recentResult_{vantage_point}")
if isinstance(contents, list):
raise RuntimeError(
f"Expected a file at recentResult_{vantage_point}"
" but got a directory.")
f"Expected a file at recentResult_{vantage_point}"
" but got a directory.")
self._lines = contents.decoded_content.decode('utf-8').splitlines()