Your IP : 3.141.192.174


Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/getpass.cpython-312.opt-2.pyc

�

�Q�ff����	ddlZddlZddlZddlZddlZgd�ZGd�de�Zd
d�Zd
d�Z	d
d�Z
dd�Zd	�Z	ddl
Z
e
je
jfeZy#eef$r	ddlZe	ZYy#e$re
ZYYywxYwwxYw)�N)�getpass�getuser�GetPassWarningc��eZdZy)rN)�__name__�
__module__�__qualname__���./opt/alt/python312/lib64/python3.12/getpass.pyrrs�rrc���	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)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�	�	�	�	�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��

:��I
 �	�s��I$�BE6� I$�#A)H'�
%G;�2'H'�I$�6G8�F/�.G8�/G�G8�G�%G8�4I$�7G8�8I$�;)H$�$H'�'6I!�I$� I!�!I$�$I-c�h�	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)N��
r�����)rr�	__stdin__r#�msvcrt�putwch�getwch�KeyboardInterrupt)r/r0�c�pws    r�win_getpassrFas���D�
�y�y��
�
�%����/�/�
���
�
�a���	�B�
��M�M�O����9��T�	����;�#�#���9��C�R��B��a��B���M�M�$��
�M�M�$��
�Irc��tjdtd��|stj}td|��t
||�S)Nz%Can not control echo on the terminal.�)�
stacklevelz&Warning: Password input may be echoed.)�file)�warnings�warnrrr$�printr+)r/r0s  rr#r#xs:���M�M�9�>�� ������	�
2��@��f�f�%�%rc��|stj}|stj}t|�}|r"	|j	|�|j�|j�}|st�|ddk(r|dd}|S#t
$rK|j
|jd�}|j|j�}|j	|�Y��wxYw)N�replacer>r)rr$r�strr.�UnicodeEncodeError�encode�encoding�decoder,�readline�EOFError)r/r0r�lines    rr+r+�s����������	�	��
��[�F�
�	!��L�L�� �	�����>�>��D�����B�x�4���C�R�y���K��"�	!��]�]�6�?�?�I�>�F��]�]�6�?�?�3�F��L�L�� �		!�s�A;�;AC�Cc��	dD]'}tjj|�}|s�%|cSddl}|j	tj
��dS)N)�LOGNAME�USER�LNAME�USERNAMEr)r�environ�get�pwd�getpwuid�getuid)�name�userr_s   rrr�sL���9���z�z�~�~�d�#����K�9���<�<��	�	��$�Q�'�'r)z
Password: N)r:NN)rrrrrK�__all__�UserWarningrr8rFr#r+rr%r&r*r�ImportErrorr!r@r
rr�<module>rgs���
� �	�	�
��
0��(�[�'�A�H�.&��2(�$
�����w�(�(�(��G��	�^�$��������#�"��#���s/�A�A7� A(�$A7�(A3�/A7�2A3�3A7

?>