b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/getpass.pyc
Size4.64 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:27
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc @s?dZddkZddkZddkZdddgZdefd��YZddd�Zddd �Z ddd
�Z
d ddd �Z d
�Z y ddk
Z
e
ie
ifWn{eefj
oiyddkZWnIej
o=yddklZWnej
o
e
Zq0XeZq;Xe ZnXeZdS(sÁ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.
On the Mac EasyDialogs.AskPassword is used, if available.

iÿÿÿÿNtgetpasstgetusertGetPassWarningcBseZRS((t__name__t
__module__(((s/usr/lib64/python2.6/getpass.pyRss
Password: c
CsÊd}d}yLtidtitiB�}ti|dd�}|}|p
|}nWn^tj
oR}ytii �}Wnt
||�}nXti}|p
ti }q¹nX|dj oód}y¥t i
|�}|}|dct iM<t i} tt d�o| t iO} nz,t i|| |�t||d|�}Wdt i|| |�|i�XWq¹t ij
o2}|dj o�n~~t
||�}q¹Xn|id�|S( sPrompt 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.
s/dev/ttysw+iitTCSASOFTtinputNs
(tNonetostopentO_RDWRtO_NOCTTYtfdopentEnvironmentErrortsyststdintfilenotfallback_getpasststderrttermiost tcgetattrtECHOt TCSAFLUSHthasattrRt tcsetattrt
_raw_inputtflushterrortwrite(
tprompttstreamtfdtttyRtetpasswdtoldtnewttcsetattr_flags((s/usr/lib64/python2.6/getpass.pyt unix_getpasssJ 
 

cCsÜtitij ot||�Sddk}x|D]}|i|�q4Wd}xj|i�}|djp
|djoPn|djo
t�n|djo|d }qT||}qT|id�|id�|S(s9Prompt for password with echo off, using Windows getch().iÿÿÿÿNts
s
ss(RRt __stdin__RtmsvcrttputchtgetchtKeyboardInterrupt(RRR)tctpw((s/usr/lib64/python2.6/getpass.pyt win_getpassYs&  





cCsAtidtdd�|p
ti}n|dIJt||�S(Ns%Can not control echo on the terminal.t
stacklevelis&Warning: Password input may be echoed.(twarningstwarnRRRR(RR((s/usr/lib64/python2.6/getpass.pyRps 

R'cCs�|p
ti}n|p
ti}nt|�}|o|i|�|i�n|i�}|p
t�n|ddjo|d }n|S(Niÿÿÿÿs
(RRRtstrRRtreadlinetEOFError(RRRtline((s/usr/lib64/python2.6/getpass.pyRys

 
 
cCs^ddk}x,dD]$}|ii|�}|o|SqWddk}|i|i��dS( sÂGet 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.

iÿÿÿÿNtLOGNAMEtUSERtLNAMEtUSERNAMEi(R7R8R9R:(Rtenvirontgettpwdtgetpwuidtgetuid(RtnametuserR=((s/usr/lib64/python2.6/getpass.pyR�s   (t AskPassword(t__doc__RRR1t__all__t UserWarningRRR&R/RRRRRRt ImportErrortAttributeErrorR)t EasyDialogsRBR(((s/usr/lib64/python2.6/getpass.pyt<module> s,$?