mò %U²Ic@sjdZdkZdkZddgZdefd„ƒYZdfd„ƒYZedjo eƒGHndS(s-An object-oriented interface to .netrc files.NtnetrctNetrcParseErrorcBs&tZdZeed„Zd„ZRS(s5Exception raised on syntax errors in the .netrc file.cCs/||_||_||_ti||ƒdS(N(tfilenametselftlinenotmsgt Exceptiont__init__(RRRR((t"/data/zmath/lib/python2.4/netrc.pyR s   cCsd|i|i|ifS(Ns%s (%s, line %s)(RRRR(R((Rt__str__s(t__name__t __module__t__doc__tNoneRR (((RR s cBs&tZdd„Zd„Zd„ZRS(Nc CsÅ|djoFy tiitiddƒ}WqStj otdƒ‚qSXnt|ƒ}h|_ h|_ t i |ƒ}|id7_x/|iƒ}} | pPnÒ| djo|iƒ}nµ| djo d}nž| djow|iƒ}g|i |?@[\]^_`{|}~itmachinetdefaulttmacdefs s s sbad toplevel token %rts&malformed %s entry %s terminated by %stlogintusertaccounttpasswordsbad follower token %r( tfileR tostpathtjointenvirontKeyErrortIOErrortopentfpRthoststmacrostshlextlexert wordcharst get_tokenttopleveltttt entrynamet whitespacetinstreamtreadlinetlinetappendRRRRRt push_tokentrepr( RRRR#R(R&RR,RR'R((RRsj                4    cCsF||ijo|i|Sn$d|ijo|idSndSdS(s8Return a (user, account, password) tuple for given host.RN(thostRR R (RR0((RtauthenticatorsUs cCsðd}x‹|iiƒD]z}|i|}|d|dt|dƒd}|do|dt|dƒ}n|dt|d ƒd}qWxU|iiƒD]D}|d |d}x|i|D]}||}qÊW|d}q¤W|S( s3Dump the class data in the format of a .netrc file.Rsmachine s login is isaccount s password ismacdef N( trepRR tkeysR0tattrsR/R!tmacroR,(RR5R0R4R,R2((Rt__repr__^s" $  (R R R RR1R6(((RRs > t__main__(R RR"t__all__RRRR (R8RRR"R((Rt?s   X