o
p̦if @ s d Z ddlZddlZddlZddlZddlZg dZG dd deZdddZ dd d
Z
dddZdddZdd Z
zddlZejejf W n" eefyh zddlZW n
eyb eZY Y dS w e
ZY dS w e ZdS )a Utilities to get a password and/or the current user name.
getpass(prompt[, stream]) - Prompt for a password, with echo turned off.
getuser() - Get the user name from the environment or password database.
GetPassWarning - This UserWarning is issued when getpass() cannot prevent
echoing of the password contents while reading.
On Windows, the msvcrt module will be used.
N)getpassgetuserGetPassWarningc @ s e Zd ZdS )r N)__name__
__module____qualname__ r r /usr/lib/python3.10/getpass.pyr s r
Password: c
C s d}t }z%tdtjtjB }t|d}|| t |}|| |s+|}W n/ t
y[ | ztj
}W n ttfyP d}t| |}Y nw tj
}|sYtj}Y nw |durzLt|}|dd }|d tj M <