refactor: import getpass directly
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user