AlkantarClanX12

Your IP : 52.14.166.224


Current Path : /usr/lib64/python3.6/__pycache__/
Upload File :
Current File : //usr/lib64/python3.6/__pycache__/getpass.cpython-36.opt-2.pyc

3


 \j�@s�ddlZddlZddlZddlZddlZdddgZGdd�de�Zddd�Zdd	d
�Z	ddd�Z
ddd�Zdd�Zyddl
Z
e
je
jfWnBeefk
r�yddlZWnek
r�e
ZYnXe	ZYnXeZdS)�N�getpass�getuser�GetPassWarningc@seZdZdS)rN)�__name__�
__module__�__qualname__�rr�/usr/lib64/python3.6/getpass.pyrs�
Password: c.Cs�d}tj����}yJtjdtjtjB�}tj|d�}|j|�tj	|�}|j|�|sX|}Wnpt
k
r�}zT|j�ytj
j�}Wn&ttfk
r�d}t||�}YnXtj
}|s�tj}WYdd}~XnX|dk	�r�y�tj|�}|dd�}	|	dtjM<tj}
ttd��r|
tjO}
z tj||
|	�t|||d�}Wdtj||
|�|j�XWn@tjk
�r�|dk	�rz�||k	�r�|j�t||�}YnX|jd�|SQRXdS)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�	tcgetattrZECHOZ	TCSAFLUSH�hasattrr�	tcsetattr�
_raw_input�flush�error�write)�prompt�streamZpasswd�stack�fdZttyr
�e�old�newZtcsetattr_flagsrrr	�unix_getpasssR








r1cCs�tjtjk	rt||�Sx|D]}tj|�qWd}xHtj�}|dksL|dkrNP|dkrZt�|dkrp|dd�}q4||}q4Wtjd�tjd�|S)N��
r������)rr�	__stdin__r �msvcrtZputwchZgetwch�KeyboardInterrupt)r*r+�cZpwrrr	�win_getpassas"



r<cCs0tjdtdd�|stj}td|d�t||�S)Nz%Can not control echo on the terminal.�)�
stacklevelz&Warning: Password input may be echoed.)�file)�warnings�warnrrr!�printr&)r*r+rrr	r xsr r2cCs�|s
tj}|stj}t|�}|rpy|j|�Wn8tk
rf|j|jd�}|j|j�}|j|�YnX|j	�|j
�}|s�t�|ddkr�|dd�}|S)N�replacer6rr7r7)rr!r�strr)�UnicodeEncodeError�encode�encoding�decoder'�readline�EOFError)r*r+r
�linerrr	r&�s&r&cCs<x dD]}tjj|�}|r|SqWddl}|jtj��dS)N�LOGNAME�USER�LNAME�USERNAMEr)rLrMrNrO)r�environ�get�pwd�getpwuid�getuid)�name�userrRrrr	r�s
)r
N)r
N)r
N)r2NN)rrrrr@�__all__�UserWarningrr1r<r r&rr"r#r%�ImportErrorrr9rrrrr	�<module>s*

D