file_get_contents
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
lib64
/
python2.7
/
Filename :
getpass.pyo
back
Copy
� zfc�����������@���s9��d��Z��d�d�l�Z�d�d�l�Z�d�d�l�Z�d�d�d�g�Z�d�e�f�d�������YZ�d�d�d���Z�d�d�d ���Z �d�d�d ���Z �d�d�d�d���Z�d ����Z�y �d�d�l �Z �e �j�e �j�f�Wnu�e�e�f�k �r.y�d�d�l�Z�WnE�e�k �r$y�d�d�l�m�Z�Wn�e�k �re �Z�q+Xe�Z�q5Xe �Z�n�Xe�Z�d�S(���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����Nt���getpasst���getusert���GetPassWarningc�����������B���s���e��Z�RS(����(���t���__name__t ���__module__(����(����(����s���/usr/lib64/python2.7/getpass.pyR������s����s ���Password: c��� ������C���s���d�}�d�}�yJ�t�j�d�t�j�t�j�B��}�t�j�|�d�d���}�|�}�|�sU�|�}�n��Wnj�t�k �r��}�y�t�j�j ����}�Wn&�t �t�f�k �r��t�|��|���}�n�Xt�j�}�|�s��t�j �}�q��n�X|�d�k �r�d�}�y��t�j�|���}�|�}�|�d�c�t�j�M<t�j�} �t�t�d���r*| �t�j�O} �n��z,�t�j�|�| �|���t�|��|�d�|��}�Wd�t�j�|�| �|���|�j����XWq�t�j�k �r�}�|�d�k �r����n��~�~�t�|��|���}�q�Xn��|�j�d���|�S( ���s��Prompt 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/ttys���w+i���i���t���TCSASOFTt���inputNs��� (���t���Nonet���ost���opent���O_RDWRt���O_NOCTTYt���fdopent���EnvironmentErrort���syst���stdint���filenot���AttributeErrort ���ValueErrort���fallback_getpasst���stderrt���termiost ���tcgetattrt���ECHOt ���TCSAFLUSHt���hasattrR���t ���tcsetattrt ���_raw_inputt���flusht���errort���write( ���t���promptt���streamt���fdt���ttyR���t���et���passwdt���oldt���newt���tcsetattr_flags(����(����s���/usr/lib64/python2.7/getpass.pyt���unix_getpass���sJ���� c���������C���s����t��j�t��j�k �r�t�|��|���Sd�d�l�}�x�|��D]�}�|�j�|���q2�Wd�}�xd�|�j����}�|�d�k�sv�|�d�k�rz�Pn��|�d�k�r��t���n��|�d�k�r��|�d� }�qR�|�|�}�qR�W|�j�d���|�j�d���|�S(���s9���Prompt for password with echo off, using Windows getch().i����Nt����s��� s��� s���s���(���R���R���t ���__stdin__R���t���msvcrtt���putcht���getcht���KeyboardInterrupt(���R���R ���R+���t���ct���pw(����(����s���/usr/lib64/python2.7/getpass.pyt���win_getpassY���s$���� c���������C���s?���t��j�d�t�d�d��|�s(�t�j�}�n��|�d�IJt�|��|���S(���Ns%���Can not control echo on the terminal.t ���stackleveli���s&���Warning: Password input may be echoed.(���t���warningst���warnR���R���R���R���(���R���R ���(����(����s���/usr/lib64/python2.7/getpass.pyR���p���s���� R)���c���������C���s����|�s�t��j�}�n��|�s$�t��j�}�n��t�|����}��|��rP�|�j�|����|�j����n��|�j����}�|�sk�t���n��|�d�d�k�r��|�d� }�n��|�S(���Ni����s��� (���R���R���R���t���strR���R���t���readlinet���EOFError(���R���R ���R���t���line(����(����s���/usr/lib64/python2.7/getpass.pyR���y���s���� c����������C���s\���d�d�l��}��x*�d�D]"�}�|��j�j�|���}�|�r�|�Sq�Wd�d�l�}�|�j�|��j������d�S( ���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����Nt���LOGNAMEt���USERt���LNAMEt���USERNAMEi����(���R9���R:���R;���R<���(���R���t���environt���gett���pwdt���getpwuidt���getuid(���R���t���namet���userR?���(����(����s���/usr/lib64/python2.7/getpass.pyR�������s���� (���t���AskPassword(���t���__doc__R���R���R3���t���__all__t���UserWarningR���R���R(���R1���R���R���R���R���R���R���t���ImportErrorR���R+���t���EasyDialogsRD���R����(����(����(����s���/usr/lib64/python2.7/getpass.pyt���<module>���s,���$?