Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.17.162.245
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : getpass.cpython-32.pyc
l
��bc@s
dZddlZddlZddlZdddgZGd�de�Zddd�Zddd	�Z	ddd
�Z
dddd�Zd
�Zy ddl
Z
e
je
jfWnIeefk
r�yddlZWnek
r�e
ZYnXe	ZYnXeZdS(u�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.

iNugetpassugetuseruGetPassWarningcBs|EeZdS(N(u__name__u
__module__(u
__locals__((u./usr/local/python-3.2/lib/python3.2/getpass.pyuGetPassWarnings
u
Password: c
'Cs�d}d}yJtjdtjtjB�}tj|dd�}|}|sU|}nWn}tk
r�}z]ytjj	�}Wn't
tfk
r�t||�}YnXtj}|s�tj
}nWYdd}~XnX|dk	r�d}y�tj|�}|dd�}|dtjM<tj}	ttd�rD|	tjO}	nz,tj||	|�t||d|�}Wdtj||	|�|j�XWq�tjk
r�}z,|dk	r��n~~t||�}WYdd}~Xq�Xn|jd�|S(	uPrompt 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.
    u/dev/ttyuw+iNiuTCSASOFTuinputu
(uNoneuosuopenuO_RDWRuO_NOCTTYufdopenuEnvironmentErrorusysustdinufilenouAttributeErroru
ValueErrorufallback_getpassustderrutermiosu	tcgetattruECHOu	TCSAFLUSHuhasattruTCSASOFTu	tcsetattru
_raw_inputuflushuerroruwrite(
upromptustreamufduttyuinputueupasswduoldunewutcsetattr_flags((u./usr/local/python-3.2/lib/python3.2/getpass.pyuunix_getpasssJ
		%
cCs�tjtjk	rt||�Sddl}x|D]}|j|�q2Wd}xi|j�}|dksv|dkrzPn|dkr�t�n|dkr�|dd	�}qR||}qR|jd�|jd�|S(
u9Prompt for password with echo off, using Windows getch().iNuu
u
uuii����(usysustdinu	__stdin__ufallback_getpassumsvcrtuputwchugetwchuKeyboardInterrupt(upromptustreamumsvcrtucupw((u./usr/local/python-3.2/lib/python3.2/getpass.pyuwin_getpassYs$

	


cCsEtjdtdd�|s(tj}ntdd|�t||�S(Nu%Can not control echo on the terminal.u
stackleveliu&Warning: Password input may be echoed.ufile(uwarningsuwarnuGetPassWarningusysustderruprintu
_raw_input(upromptustream((u./usr/local/python-3.2/lib/python3.2/getpass.pyufallback_getpasspsucCs�|stj}n|s$tj}nt|�}|rP|j|�|j�n|j�}|skt�n|ddkr�|dd�}n|S(Niu
i����i����(usysustderrustdinustruwriteuflushureadlineuEOFError(upromptustreamuinputuline((u./usr/local/python-3.2/lib/python3.2/getpass.pyu
_raw_inputys

	cCs\ddl}x*dD]"}|jj|�}|r|SqWddl}|j|j��dS(u�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.

    iNuLOGNAMEuUSERuLNAMEuUSERNAME(uLOGNAMEuUSERuLNAMEuUSERNAME(uosuenvironugetupwdugetpwuidugetuid(uosunameuuserupwd((u./usr/local/python-3.2/lib/python3.2/getpass.pyugetuser�s
(u__doc__uosusysuwarningsu__all__uUserWarninguGetPassWarninguNoneuunix_getpassuwin_getpassufallback_getpassu
_raw_inputugetuserutermiosu	tcgetattru	tcsetattruImportErroruAttributeErrorumsvcrtugetpass(((u./usr/local/python-3.2/lib/python3.2/getpass.pyu<module>s$$?		

© 2025 GrazzMean