Ñò §ÚêLc@spdZddkZddkZddgZdefd„ƒYZddd„ƒYZedjo eƒGHndS( s-An object-oriented interface to .netrc files.iÿÿÿÿNtnetrctNetrcParseErrorcBs&eZdZddd„Zd„ZRS(s5Exception raised on syntax errors in the .netrc file.cCs/||_||_||_ti||ƒdS(N(tfilenametlinenotmsgt Exceptiont__init__(tselfRRR((s/usr/lib64/python2.6/netrc.pyR s   cCsd|i|i|ifS(Ns%s (%s, line %s)(RRR(R((s/usr/lib64/python2.6/netrc.pyt__str__sN(t__name__t __module__t__doc__tNoneRR(((s/usr/lib64/python2.6/netrc.pyR scBs&eZdd„Zd„Zd„ZRS(c Cs¿|djoFy tiitiddƒ}WqStj otdƒ‚qSXnt|ƒ}h|_h|_ t i |ƒ}|i d7_ x)|i ƒ}}|pPnÐ|djo|i ƒ}n³|djo d}nœ|djou|i ƒ}g|i |?@[\]^_`{|}~tmachinetdefaulttmacdefs s s sbad toplevel token %rts&malformed %s entry %s terminated by %stlogintusertaccounttpasswordsbad follower token %r(R tostpathtjointenvirontKeyErrortIOErrortopenthoststmacrostshlext wordcharst get_tokent whitespacetinstreamtreadlinetappendRRt push_tokentrepr( Rtfiletfptlexerttopleveltttt entrynametlineRRR((s/usr/lib64/python2.6/netrc.pyRsl                    cCs@||ijo |i|Sd|ijo |idSdSdS(s8Return a (user, account, password) tuple for given host.RN(RR (Rthost((s/usr/lib64/python2.6/netrc.pytauthenticatorsUs   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 (RtkeysR'R(RtrepR/tattrstmacroR.((s/usr/lib64/python2.6/netrc.pyt__repr__^s  $  N(R R R RR0R5(((s/usr/lib64/python2.6/netrc.pyRs > t__main__((R RRt__all__RRRR (((s/usr/lib64/python2.6/netrc.pyts   X