config root man

Current Path : /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 : //usr/local/lib/python2.5/multifile.pyo

³ò
h”Rc@s?dZddgZdefd„ƒYZddd„ƒYZdS(s­A readline()-style interface to the parts of a multipart message.

The MultiFile class makes each part of a multipart message "feel" like
an ordinary file, as long as you use fp.readline().  Allows recursive
use, for nested multipart messages.  Probably best used together
with module mimetools.

Suggested use:

real_fp = open(...)
fp = MultiFile(real_fp)

"read some lines from fp"
fp.push(separator)
while 1:
        "read lines from fp until it returns an empty string" (A)
        if not fp.next(): break
fp.pop()
"read remaining lines from fp until it returns an empty string"

The latter sequence may be used recursively at (A).
It is also allowed to use multiple push()...pop() sequences.

If seekable is given as 0, the class code will not do the bookkeeping
it normally attempts in order to make seeks relative to the beginning of the
current file part.  This may be useful when using MultiFile with a non-
seekable stream object.
t	MultiFiletErrorcBseZRS((t__name__t
__module__(((s%/usr/local/lib/python2.5/multifile.pyR scBs€eZdZdd„Zd„Zdd„Zd„Zd„Zd„Zd„Z	d	„Z
d
„Zd„Zd„Z
d
„ZRS(iicCsW||_g|_d|_d|_|o(d|_|iiƒ|_g|_ndS(Nii(tfptstacktleveltlasttseekablettelltstarttposstack(tselfRR((s%/usr/local/lib/python2.5/multifile.pyt__init__'s					cCs/|idjo|iSn|iiƒ|iS(Ni(RtlastposRR	R
(R((s%/usr/local/lib/python2.5/multifile.pyR	1scCsæ|iƒ}|oZ|djo||}qm|djo.|idjo||i}qitd‚qmnd|jo
|jnp |idjo||ijo
td‚n|ii||iƒd|_d|_dS(Niiiscan't use whence=2 yetsbad MultiFile.seek() call(R	RRRRtseekR
R(Rtpostwhencethere((s%/usr/local/lib/python2.5/multifile.pyR6s

 
	cCs\|idjodSn|iiƒ}|pCt|iƒ|_|idj|_|io
td‚ndSn|i|ƒo|Sn
|iƒ}xot	t
|iƒƒD]T\}}||i|ƒjod|_Pq«||i|ƒjod|_Pq«q«W|S|i
o|iƒt|ƒ|_n|d|_|idjo
td‚ndS(Nits"sudden EOF in MultiFile.readline()is)Missing endmarker in MultiFile.readline()(RRtreadlinetlenRRRtis_datatrstript	enumeratetreversedtsection_dividert
end_markerRR	R(Rtlinetmarkertitsep((s%/usr/local/lib/python2.5/multifile.pyRGs6

			


cCs5g}x(|iƒ}|pPn|i|ƒq	|S(N(Rtappend(RtlistR((s%/usr/local/lib/python2.5/multifile.pyt	readlineslscCsdi|iƒƒS(NR(tjoinR"(R((s%/usr/local/lib/python2.5/multifile.pytreadtscCsmx|iƒoqW|idjp
|iodSnd|_d|_|io|iiƒ|_ndS(Nii(RRRRRR	R
(R((s%/usr/local/lib/python2.5/multifile.pytnextws
		
cCsd|idjo
td‚n|ii|ƒ|io)|ii|iƒ|iiƒ|_ndS(Nisbad MultiFile.push() call(	RRRR RRR
RR	(RR((s%/usr/local/lib/python2.5/multifile.pytpushs

cCs¸|igjo
td‚n|idjo
d|_n|i|i}td|idƒ|_|iiƒ|io:|i	iƒ|_|idjo||i|_q´ndS(Nsbad MultiFile.pop() callii(
RRRRRR
tmaxtpopRR(Rt
abslastpos((s%/usr/local/lib/python2.5/multifile.pyR(‰s



cCs|d djS(Nis--((RR((s%/usr/local/lib/python2.5/multifile.pyR—scCsd|S(Ns--((Rtstr((s%/usr/local/lib/python2.5/multifile.pyRšscCsd|dS(Ns--((RR*((s%/usr/local/lib/python2.5/multifile.pyRs(RRRR
R	RRR"R$R%R&R(RRR(((s%/usr/local/lib/python2.5/multifile.pyR#s
		%			
				N((t__doc__t__all__t	ExceptionRR(((s%/usr/local/lib/python2.5/multifile.pys<module>s

Man Man