diff --git a/bebop/browser/browser.py b/bebop/browser/browser.py index f78f566..9383ede 100644 --- a/bebop/browser/browser.py +++ b/bebop/browser/browser.py @@ -9,7 +9,7 @@ import subprocess import tempfile from math import inf from pathlib import Path -from typing import Dict, Optional, Tuple +from typing import Optional, Tuple from bebop.bookmarks import ( get_bookmarks_path, diff --git a/bebop/browser/gemini.py b/bebop/browser/gemini.py index 593e011..31fc413 100644 --- a/bebop/browser/gemini.py +++ b/bebop/browser/gemini.py @@ -6,9 +6,7 @@ from typing import Optional from bebop.browser.browser import Browser from bebop.command_line import CommandLine -from bebop.fs import ( - get_downloads_path, get_identities_path, get_identities_list_path -) +from bebop.fs import get_downloads_path, get_identities_list_path from bebop.identity import ( ClientCertificateException, create_certificate, get_cert_and_key, get_identities_for_url, load_identities, save_identities @@ -295,7 +293,7 @@ def _handle_cert_required( """ identities = load_identities(get_identities_list_path()) if not identities: - browser.set_status_error(f"Can't load identities.") + browser.set_status_error("Can't load identities.") return None browser.identities = identities diff --git a/bebop/identity.py b/bebop/identity.py index 3d35dad..a7438a6 100644 --- a/bebop/identity.py +++ b/bebop/identity.py @@ -26,12 +26,11 @@ import hashlib import json import logging import secrets -import string import subprocess from pathlib import Path -from typing import Optional, Union +from typing import Optional -from bebop.fs import get_identities_path, get_user_data_path +from bebop.fs import get_identities_path def load_identities(identities_path: Path) -> Optional[dict]: