ž ¦ÿf¡c@s4dZddlZddlZddlZddlZddlZdddgZGdd„deƒZdddd „Z ddd d „Z ddd d „Z ddddd„Z dd„Zy ddlZejejfWnIeefk r)yddlZWnek re ZYnXe ZYnXe ZdS(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|EeZdZdS(uGetPassWarningN(u__name__u __module__u __qualname__(u __locals__((u,/opt/alt/python33/lib64/python3.3/getpass.pyuGetPassWarningsu Password: c .Cs5d}tjƒ}yjtjdtjtjBƒ}tj|dƒ}|j |ƒtj |ƒ}|j |ƒ|s~|}nWnt k r}zm|j ƒyt jjƒ}Wn-ttfk ràd}t||ƒ}YnXt j}|süt j}nWYdd}~XnX|dk ryªtj|ƒ}|dd…} | dtjM s,     D