Files
952-11/env/python/dll/Python312/Lib/__pycache__/getpass.cpython-312.pyc
T

60 lines
6.7 KiB
Plaintext
Raw Normal View History

2024-08-19 17:05:14 +08:00
Ë
*åfãóö—dZddlZddlZddlZddlZddlZgd¢ZGd„de«Zd d„Z d d„Z
d d„Z d d „Z d
„Z
ddlZejej fe Zy#eef$r ddlZe
ZYy#e$re ZYYywxYwwxYw)
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)ÚgetpassÚgetuserÚGetPassWarningcó —eZdZy)rN)Ú__name__Ú
__module__Ú __qualname__©óúCC:\Users\RCi\AppData\Local\Programs\Python\Python312\Lib\getpass.pyrrs…r rcóÞ—d}tj«5} tjdtjtj
z«}t
j|d«}|j|«t
j|«}|j|«|s|}|�¸ t'j(|«}|dd}|dxxt&j*zcc<t&j,} t/t&d«r| t&j0z} t'j2|| |«t5|||¬«}t'j2|| |«|j7« |j;d«|cddd«S#t$ry|j« tjj«}n##tt f$rd}t#||«}YnwxYwtj}|stj$}Y�ŒWwxYw#t'j2|| |«|j7«wxYw#t&j8$r'|�‚||ur|j«t#||«}Y�ŒwxYw#1swYyxYw)aPrompt for a password, with echo turned off.
Args:
prompt: Written on stream to ask for the input. Default: 'Password: '
stream: A writable file object to display the prompt. Defaults to
the tty. If no tty is available defaults to sys.stderr.
Returns:
The seKr3t input.
Raises:
EOFError: If our input tty or stdin was closed.
GetPassWarning: When we were unable to turn echo off on the input.
Always restores terminal settings before returning.
Nz/dev/ttyzw+éÚTCSASOFT)Úinputú
)Ú
contextlibÚ ExitStackÚosÚopenÚO_RDWRÚO_NOCTTYÚioÚFileIOÚ
enter_contextÚ
TextIOWrapperÚOSErrorÚcloseÚsysÚstdinÚfilenoÚAttributeErrorÚ
ValueErrorÚfallback_getpassÚstderrÚtermiosÚ tcgetattrÚECHOÚ TCSAFLUSHÚhasattrrÚ tcsetattrÚ
_raw_inputÚflushÚerrorÚwrite)
ÚpromptÚstreamÚpasswdÚstackÚfdÚttyrÚoldÚnewÚtcsetattr_flagss
r Ú unix_getpassr8s€ð€FÜ × Ñ Ó ð1 5ð $ä—‘˜¤R§Y¡Y¬r¯{©{Ñ%:Ó;ˆBÜ—)‘)˜B Ó%ˆCØ × Ñ  Ô $Ü×$Ñ$ SÓ)ˆEØ × Ñ  Ô &ÙØ�ð ˆ>ð
:Ü×'Ñ'¨Ó+�Ø™!�f�Ø�A“œ7Ÿ<™<˜-Ñ'“Ü")×"3Ñ"3�Üœ7 JÔ/Ø#¤w×'7Ñ'7Ñ7�Oð#Ü×%Ñ% b¨/¸3Ô?Ü'¨°¸eÔD�Fä×%Ñ% b¨/¸3Ô?Ø—L‘L•Nð � ‰ �TÔØ÷c1ñ1øôò
$à �K‰KŒMð
:Ü—Y‘Y×%Ñ%Ó'‘øÜ"¤JÐ/ò
:Ø�Ü)¨&°&Ó9’ð
:úô—I‘IˆEÙÜŸ™�úð
$ûô0×%Ñ% b¨/¸3Ô?Ø—L‘L•NûÜ—=‘=ò
:ØÐ%ðð Ñ&à—K‘K”MÜ)¨&°&Ó9“ð
:ú÷I1ð1ús�—I#™BE5ÂI#Â"A)H&Ä %G:Ä1'H&ÅI#Å5G7ÆF.Æ-G7Æ.GÇ G7Ç
GÇ%G7Ç3I#Ç6G7Ç7I#Ç:)H#È#H&È&6I ÉI#ÉI É I#É#I,cóf—tjtjur t||«S|D]}t j
|«Œd} t j «}|dk(s|dk(rn|dk(rt‚|dk(r|dd}n||z}Œ;t j
d«t j
d«|S)z:Prompt for password with echo off, using Windows getwch().Úú
rúúNéÿÿÿÿ)rrÚ __stdin__r#ÚmsvcrtÚputwchÚgetwchÚKeyboardInterrupt)r/r0ÚcÚpws r Ú win_getpassrFas©€ä
‡y�yœŸ
™
Ñ%Ü ¨Ó/Ð/à