eYSrSSKrSSKrSSKrSSKr/SQr"SS\5rS SjrS Sjr S Sjr S S jr S r SSK r \ R\ R4 \rg!\\4a SSKr\ rg!\a \ rgf=ff=f) aUtilities 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\rSrSrSrg)rN)__name__ __module__ __qualname____firstlineno____static_attributes__r-/opt/imh/python3.13/lib/python3.13/getpass.pyrrs4rrc Sn[R"5n[R"S[R[R -5n[ R"US5nURU5 [ R"U5nURU5 U(dUnUb[&R("U5nUSSnUS==[&R*)-ss'[&R,n [/[&S5(aU [&R0-n [&R2"XIU5 [5XUS9n[&R2"XIU5 UR75 UR;S5 UsSSS5 $![a~ UR5 [RR5nO#![[ 4a Sn[#X5nOf=f[RnU(d[R$nGN_f=f![&R2"XIU5 UR75 f=f![&R8a' UbeXLaUR5 [#X5nGN f=f!,(df  g=f)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 ExitStackosopenO_RDWRO_NOCTTYioFileIO enter_context TextIOWrapperOSErrorclosesysstdinfilenoAttributeError ValueErrorfallback_getpassstderrtermios tcgetattrECHO TCSAFLUSHhasattrr tcsetattr _raw_inputflusherrorwrite) promptstreampasswdstackfdttyroldnewtcsetattr_flagss r unix_getpassr;sF    5 $RYYr{{%:;B))B%C    $$$S)E    & > :''+!fA7<<-'")"3"37J//#w'7'77O#%%b3?'eDF%%b3?LLN  Tc  $ KKM :YY%%'"J/ :)&9 :IIE $0%%b3?LLN== :%&KKM)&9 :I sI5BF(I5,A/H7!H ='H7$I5HF:9H:GHG*HI5HI5 )H44H777I2.I51I22I55 Jcz[R[RLa [X5$UHn[R "U5 M Sn[R "5nUS:XdUS:XaOUS:Xa[eUS:XaUSSnOX2-nM@[R "S5 [R "S5 U$)z:Prompt for password with echo off, using Windows getwch(). rN)r!r" __stdin__r&msvcrtputwchgetwchKeyboardInterrupt)r2r3cpws r win_getpassrI`s yy %//  a B MMO 9T  ;# # 9CRBB  MM$ MM$ IrcSSKnURS[SS9 U(d[Rn[ SUS9 [ X5$)Nrz%Can not control echo on the terminal.) stacklevelz&Warning: Password input may be echoed.)file)warningswarnrr!r'printr.)r2r3rNs rr&r&ws@ MM9>  2@ f %%rcU(d[RnU(d[Rn[U5nU(a"UR U5 UR5 UR5nU(d[eUSS:XaUSSnU$![ aK UR URS5nURUR5nUR U5 Nf=f)NreplacerAr) r!r'r"strr1UnicodeEncodeErrorencodeencodingdecoder/readlineEOFError)r2r3rlines rr.r.s    [F  ! LL   >> D  Bx4CRy K" !]]6??I>F]]6??3F LL  !sBAC%$C%cSH-n[RRU5nU(dM+Us $ SSKnUR [R "55S$![ [4an[S5UeSnAff=f)aMGet the username from the environment or password database. First try various environment variables, then the password database. This works on Windows as long as USERNAME is set. Any failure to find a username raises OSError. .. versionchanged:: 3.13 Previously, various exceptions beyond just :exc:`OSError` were raised. )LOGNAMEUSERLNAMEUSERNAMErNz"No username set in the environment) renvirongetpwdgetpwuidgetuid ImportErrorKeyErrorr)nameuserrbes rrrsr9zz~~d# 4K9 C||BIIK(++  "C:;BCs*A B0 A<<B)z Password: N)r=NN)__doc__rrrr!__all__ UserWarningrr;rIr&r.rr(r)r-rrer$rCrrrrms   0(['AH.&2C2  w(((G ^$ #"#s/AA:"A*&A:*A62A:5A66A: