MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/proc/self/root/proc/2/root/usr/lib/python2.4/getpass.pyc
mò
‚=5Dc@sódZdkZddgZdd„Zdd„Zdd„Zdd	„Zd
„ZydkZei	ei
fWnueefj
ocy
dk
Z
WnFej
o:ydklZWnej
o
eZqäXeZqïXeZnXeZdS(s)Utilities to get a password and/or the current user name.

getpass(prompt) - prompt for a password, with echo turned off
getuser() - get the user name from the environment or password database

On Windows, the msvcrt module will be used.
On the Mac EasyDialogs.AskPassword is used, if available.

Ntgetpasstgetusers
Password: cCs§ytiiƒ}Wnt|ƒSnXti|ƒ}|}|dti
@|d<z&ti|ti|ƒt
|ƒ}Wdti|ti|ƒXtiidƒ|S(sXPrompt for a password, with echo turned off.

    Restore terminal settings at end.
    iNs
(tsyststdintfilenotfdtdefault_getpasstpromptttermiost	tcgetattrtoldtnewtECHOt	tcsetattrt	TCSADRAINt
_raw_inputtpasswdtstdouttwrite(RR
RRR((t/usr/lib/python2.4/getpass.pytunix_getpassscCsÛtitij	ot|ƒSndk}x|D]}|i|ƒq1Wd}xl|i	ƒ}|djp
|djoPn|djo
t
‚n|djo|d }qQ||}qQW|idƒ|idƒ|S(	s9Prompt for password with echo off, using Windows getch().Ntis
s
ssiÿÿÿÿ(RRt	__stdin__RRtmsvcrttctputchtpwtgetchtKeyboardInterrupt(RRRR((Rtwin_getpass+s*	




cCsdGHt|ƒS(Ns7Warning: Problem with getpass. Passwords may be echoed.(RR(R((RRBsRcCsjt|ƒ}|otii|ƒntiiƒ}|p
t‚n|ddjo|d }n|S(Niÿÿÿÿs
(	tstrRRRRRtreadlinetlinetEOFError(RR ((RRGs
cCs[dk}x/dD]'}|ii|ƒ}|o|SqqWdk}|i|iƒƒdS(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.

    NtLOGNAMEtUSERtLNAMEtUSERNAMEi(R"R#R$R%(tostnametenvirontgettusertpwdtgetpwuidtgetuid(R+R&R'R*((RRUs		(sAskPassword(t__doc__Rt__all__RRRRRRR	R
tImportErrortAttributeErrorRtEasyDialogstAskPasswordR(RRR/RRRRRRRR3((Rt?	s*