config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/gopherlib.pyo

hRc@sdZddgZddkZeidedddZd	Zd
ZdZdZ	d
Z
dZdZdZ
dZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd Zd!Zd"Z e!Z"ha#d#Z$d$Z%d%Z&d&d'Z'd&d(Z(d)Z)d*Z*d+Z+d,Z,d-Z-d.Z.d/Z/d0Z0e1d1joe0ndS(2s!Gopher protocol client interface.t
send_selectort
send_queryiNs"the gopherlib module is deprecatedt
stacklevelis1/sgopher.micro.umn.eduiFt0t1t2t3t4t5t6t7t8t9t+tstetcthtTtMtItwtqtgt:t;t<cCsothjo>x;tD]/}|d djo|dtt|<qqWn|tjot|Snd|fS(s=Map all file types to strings; unknown types become TYPE='x'.itA_sTYPE=%r(t_type_to_name_mapt_namesteval(tgtypetname((s%/usr/local/lib/python2.5/gopherlib.pyttype_to_name-s
 
s
s	icCsddk}|pC|id}|djo#|| t||d}}qVn|p
t}n*t|tdjot|}n|i|i|i}|i||f|i|t	|i
d|idS(sGSend a selector to a given host and port, return a file with the reply.iNRiittrb(tsockettfindtinttDEF_PORTttypetAF_INETtSOCK_STREAMtconnecttsendalltCRLFtshutdowntmakefile(tselectorthosttportR$tiR((s%/usr/local/lib/python2.5/gopherlib.pyR<s
'

cCst|d|||S(s#Send a selector and a query string.s	(R(R0tqueryR1R2((s%/usr/local/lib/python2.5/gopherlib.pyRMscCs!|djodSn	|dSdS(sJTakes a path as returned by urlparse and returns the appropriate selector.t/iN((tpath((s%/usr/local/lib/python2.5/gopherlib.pytpath_to_selectorQs
cCs'|djodSnt|dSdS(sjTakes a path as returned by urlparse and maps it to a string.
    See section 3.4 of RFC 1738 for details.R5sTYPE='unknown'iN(R!(R6((s%/usr/local/lib/python2.5/gopherlib.pytpath_to_datatype_nameXs
c	Cs=g}x0|i}|p
dGHPn|dtjo|d }n |dtjo|d }n|djoPn|pdGHq	n|d}|dit}t|djod	|fGHq	nt|djo-|dd
gjodG|dGdGHqn|id
|id||i|q	|S(s1Get a directory in the form of a list of entries.s(Unexpected EOF from server)iit.s(Empty line from server)iiis(Bad line from server: %r)R
s(Extra info from server:t)R"(treadlineR-tsplittTABtlentappendtinsert(tftentriestlineRtparts((s%/usr/local/lib/python2.5/gopherlib.pyt
get_directoryds8


cCsg}t||i|S(s@Get a text file as a list of lines, with trailing CRLF stripped.(tget_alt_textfileR?(RAtlines((s%/usr/local/lib/python2.5/gopherlib.pytget_textfilescCsx|i}|p
dGHPn|dtjo|d }n |dtjo|d }n|djoPn|d djo|d}n||qdS(	sNGet a text file and pass each line to a function, with trailing CRLF stripped.s(Unexpected EOF from server)iiR9is..iN(R;R-(RAtfuncRC((s%/usr/local/lib/python2.5/gopherlib.pyRFs
cCs|i}|S(s*Get a binary file as one solid data block.(tread(RAtdata((s%/usr/local/lib/python2.5/gopherlib.pyt
get_binaryscCs/x(|i|}|pPn||qdS(s4Get a binary file and pass each block to a function.N(RJ(RARIt	blocksizeRK((s%/usr/local/lib/python2.5/gopherlib.pytget_alt_binarys
c
Csddk}ddk}|i|idd\}}t}|d}t}|o|d}|d}n|o|d}|d}t|djo|d|}}n&d}|o|d}|d}nd}|o|d}|d}qn|tjot|||}nt||}|t	jo&t
|}	x|	D]}
|
GHqOWnk|ttfjo&t|}xH|D]}
|
GHqWn2t
|}dGt|GdGt|d d	 GHdS(
sTrivial test program.iNiR"isbinary data:sbytes:idi((tsystgetopttargvtDEF_SELECTORtDEF_HOSTR>tA_INDEXRRtA_TEXTRHtA_MENURERLtrepr(
RORPtoptstargsR0R(R1R4RARGtitemRBRK((s%/usr/local/lib/python2.5/gopherlib.pyttestsJ









t__main__(2t__doc__t__all__twarningstwarntDeprecationWarningRRRSR'RURVtA_CSOtA_ERRORtA_MACBINHEXt
A_PCBINHEXtA_UUENCODEDRTtA_TELNETtA_BINARYtA_DUPLICATEtA_SOUNDtA_EVENTt
A_CALENDARtA_HTMLtA_TN3270tA_MIMEtA_IMAGEtA_WHOIStA_QUERYtA_GIFtA_WWWtA_PLUS_IMAGEtA_PLUS_MOVIEtA_PLUS_SOUNDtdirRRR!R-R=RRR7R8RERHRFRLRNR[t__name__(((s%/usr/local/lib/python2.5/gopherlib.pys<module>sd					 					(


Man Man