refactor: import getpass directly

This commit is contained in:
2025-12-31 08:22:27 +01:00
parent dd3b220a4a
commit 6a88ab8560

View File

@@ -1,6 +1,6 @@
"""Core configuration module for Skywipe""" """Core configuration module for Skywipe"""
import getpass from getpass import getpass
import re import re
from pathlib import Path from pathlib import Path
from typing import NamedTuple from typing import NamedTuple
@@ -81,7 +81,7 @@ class Configuration:
logger.info("Please enter a valid handle and try again.") logger.info("Please enter a valid handle and try again.")
while True: while True:
password = getpass.getpass( password = getpass(
"Bluesky (hopefully app) password: ").strip() "Bluesky (hopefully app) password: ").strip()
is_valid, error_msg = _validate_password(password) is_valid, error_msg = _validate_password(password)
if is_valid: if is_valid: