Files
PowerToys/PythonHome/Lib/netrc.pyc

32 lines
4.8 KiB
Plaintext
Raw Normal View History

2014-07-09 18:15:23 +08:00
<03>
<EFBFBD>W`Sc@s<>dZddlZddlZddlZejdkrHddlZnddgZdefd<00><00>YZdd d<00><00>YZ e
dkr<>e <00>GHndS(
2014-07-10 23:57:08 +08:00
s-An object-oriented interface to .netrc files.i<><69><EFBFBD><EFBFBD>NtposixtnetrctNetrcParseErrorcBs&eZdZddd<00>Zd<00>ZRS(s5Exception raised on syntax errors in the .netrc file.cCs/||_||_||_tj||<00>dS(N(tfilenametlinenotmsgt Exceptiont__init__(tselfRRR((s:e:\github\Wox.JSONRPC\Output\Debug\PythonHome\lib\netrc.pyRs   cCsd|j|j|jfS(Ns%s (%s, line %s)(RRR(R((s:e:\github\Wox.JSONRPC\Output\Debug\PythonHome\lib\netrc.pyt__str__sN(t__name__t
__module__t__doc__tNoneRR (((s:e:\github\Wox.JSONRPC\Output\Debug\PythonHome\lib\netrc.pyR scBs/eZdd<00>Zd<00>Zd<00>Zd<00>ZRS(cCs<>|dk}|dkr[y tjjtjdd<00>}Wq[tk
2014-07-09 18:15:23 +08:00
rWtd<00><00>q[Xni|_i|_t |<00><00>}|j
2014-07-10 23:57:08 +08:00
|||<00>WdQXdS(NtHOMEs.netrcs'Could not find .netrc: $HOME is not set( R tostpathtjointenvirontKeyErrortIOErrorthoststmacrostopent_parse(Rtfilet default_netrctfp((s:e:\github\Wox.JSONRPC\Output\Debug\PythonHome\lib\netrc.pyRs      cCs<>tj|<00>}|jd7_|jjdd<00>|_x]|j<00>}}|sSPn |ddkr<>t|<00>d}|jj| d<00>|jj<00>q9n<>|dkr<>|j<00>}n<>|dkr<>d}n<>|dkrG|j<00>}g|j |<d |_
2014-07-09 18:15:23 +08:00
xF|jj<00>} | s| d
kr*d |_
Pn|j |j | <00>q<>q9nt d |||j <00><00>d}
d} } i|j|<x|j<00>}|jd<00>s<>|ddddhkr | r<>|
| | f|j|<|j|<00>Pq<50>t d ||t|<00>f||j <00><00>q<>|dks#|dkr2|j<00>}
q<>|dkrM|j<00>} q<>|dkrwtjdkrh|rhtj|j<00><00>} | jtj<00>kr6ytj| j<00>d}Wntk
r<>d| j}nXytjtj<00><00>d}Wn!tk
rdtj<00>}nXt d||f||j <00><00>n| jtjtjB@rht d||j <00><00>qhn|j<00>} q<>t d|||j <00><00>q<>q9dS(Ns !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~t#tiitmachinetdefaulttmacdefs s
s
sbad toplevel token %rs&malformed %s entry %s terminated by %stlogintusertaccounttpasswordRsuid %ss9~/.netrc file owner (%s) does not match current user (%s)sY~/.netrc access too permissive: access permissions must restrict access to only the ownersbad follower token %r( tshlext wordcharst
commenterstreplacet get_tokentlentinstreamtseektreadlineRt
whitespacetappendRRR Rt
startswitht
2014-07-10 23:57:08 +08:00
push_tokentreprRtnametfstattfilenotst_uidtgetuidtpwdtgetpwuidRtst_modetstattS_IRWXGtS_IRWXO(RRRRtlexerttoplevelttttpost entrynametlineR!R#R$tproptfownerR"((s:e:\github\Wox.JSONRPC\Output\Debug\PythonHome\lib\netrc.pyR%s<>         
2014-07-09 18:15:23 +08:00
       

2014-07-10 23:57:08 +08:00
cCs<||jkr|j|Sd|jkr4|jdSdSdS(s8Return a (user, account, password) tuple for given host.RN(RR (Rthost((s:e:\github\Wox.JSONRPC\Output\Debug\PythonHome\lib\netrc.pytauthenticatorsws
2014-07-09 18:15:23 +08:00
  cCs<>d}x<>|jj<00>D]x}|j|}|d|dt|d<19>d}|drr|dt|d<19>}n|dt|d <19>d}qWxU|jj<00>D]D}|d
|d}x|j|D]}||}q<>W|d}q<>W|S( s3Dump the class data in the format of a .netrc file.Rsmachine s
login is
isaccount s
2014-07-10 23:57:08 +08:00
password ismacdef (RtkeysR2R(RtrepRFtattrstmacroRC((s:e:\github\Wox.JSONRPC\Output\Debug\PythonHome\lib\netrc.pyt__repr__<5F>s $
2014-07-09 18:15:23 +08:00
 N(R
2014-07-10 23:57:08 +08:00
R R RRRGRL(((s:e:\github\Wox.JSONRPC\Output\Debug\PythonHome\lib\netrc.pyRs R t__main__(( R RR;R%R3R8t__all__RRRR
(((s:e:\github\Wox.JSONRPC\Output\Debug\PythonHome\lib\netrc.pyt<module>s$  x