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/gzip.pyo

³ò
h”Rc
@sødZddkZddkZddkZddkZddkZddgZddddd	f\ZZZ	Z
Zddf\ZZ
d
„Zd„Zd„Zd
„Zd„Zddd„Zdfd„ƒYZd„ZedjoeƒndS(s‘Functions that read and write gzipped files.

The user of the file doesn't have to worry about the compression,
but random access is not allowed.iÿÿÿÿNtGzipFiletopeniiiiicCs|djo|d7}n|S(s‹Return i as an unsigned integer, assuming it fits in 32 bits.

    If it's >= 2GB when viewed as a 32-bit unsigned int, return a long.
    ili l((ti((s /usr/local/lib/python2.5/gzip.pytU32s
cCs|d@S(s>Return the low-order 32 bits of an int, as a non-negative int.lÿÿ((R((s /usr/local/lib/python2.5/gzip.pytLOWU32scCs|itid|ƒƒdS(Ns<l(twritetstructtpack(toutputtvalue((s /usr/local/lib/python2.5/gzip.pytwrite32scCs|itid|ƒƒdS(Ns<L(RRR(RR	((s /usr/local/lib/python2.5/gzip.pytwrite32u"scCstid|idƒƒdS(Ns<lii(Rtunpacktread(tinput((s /usr/local/lib/python2.5/gzip.pytread32'strbi	cCst|||ƒS(sŸShorthand for GzipFile(filename, mode, compresslevel).

    The filename argument is required; mode defaults to 'rb'
    and compresslevel defaults to 9.

    (R(tfilenametmodet
compresslevel((s /usr/local/lib/python2.5/gzip.pyR*scBseZdZdZd!Zddddd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zdd„Z
d
„Zdd„Zd„Zd„Zd„Zd„Zeid„Zd„Zd„Zd„Zd„Zd„Zdd„Zdd„Zd„Zd„Zd„Z RS("sˆThe GzipFile class simulates most of the methods of a file object with
    the exception of the readinto() and truncate() methods.

    i
ii	c	Cs¸|od|jo|d7}n|djo$ti||pdƒ}|_n|djo't|dƒo
|i}q‡d}n|djo't|dƒo
|i}q»d}n|dd!djo:t|_t|_	d|_
d|_||_d	|_
n||dd!d
jp|dd!djoBt|_|i|ƒti|tititidƒ|_ntd|d
‚||_d|_|itjo|iƒndS(sAConstructor for the GzipFile class.

        At least one of fileobj and filename must be given a
        non-trivial value.

        The new class instance is based on fileobj, which can be a regular
        file, a StringIO object, or any other object which simulates a file.
        It defaults to None, in which case filename is opened to provide
        a file object.

        When fileobj is not None, the filename argument is only used to be
        included in the gzip file header, which may includes the original
        filename of the uncompressed file.  It defaults to the filename of
        fileobj, if discernible; otherwise, it defaults to the empty string,
        and in this case the original filename is not included in the header.

        The mode argument can be any of 'r', 'rb', 'a', 'ab', 'w', or 'wb',
        depending on whether the file will be read or written.  The default
        is the mode of fileobj if discernible; otherwise, the default is 'rb'.
        Be aware that only the 'rb', 'ab', and 'wb' values should be used
        for cross-platform portability.

        The compresslevel argument is an integer from 1 to 9 controlling the
        level of compression; 1 is fastest and produces the least compression,
        and 9 is slowest and produces the most compression.  The default is 9.

        tbRtnametRiitridtwtasMode s not supportedN(tNonet__builtin__Rt	myfileobjthasattrRRtREADtTruet_new_membertextrabuft	extrasizeRtmin_readsizetWRITEt_init_writetzlibtcompressobjtDEFLATEDt	MAX_WBITSt
DEF_MEM_LEVELtcompresstIOErrortfileobjtoffsett_write_gzip_header(tselfRRRR-((s /usr/local/lib/python2.5/gzip.pyt__init__<s@ 
$





					
(	
			cCs6t|iƒ}d|dd!dtt|ƒƒdS(Ns<gzip iiÿÿÿÿt t>(treprR-thextid(R0ts((s /usr/local/lib/python2.5/gzip.pyt__repr__‚scCsY|ddjo|d}n||_tidƒ|_d|_g|_d|_dS(Niýÿÿÿs.gzRi(RR&tcrc32tcrctsizetwritebuftbufsize(R0R((s /usr/local/lib/python2.5/gzip.pyR%†s			cCs¹|iidƒ|iidƒ|id }d}|o
t}n|iit|ƒƒt|ittiƒƒƒ|iidƒ|iidƒ|o|ii|dƒndS(Ns‹siýÿÿÿissÿt(R-RRtFNAMEtchrRtlongttime(R0tfnametflags((s /usr/local/lib/python2.5/gzip.pyR/s

cCstidƒ|_d|_dS(NRi(R&R9R:R;(R0((s /usr/local/lib/python2.5/gzip.pyt
_init_readscCs”|iidƒ}|djo
td‚nt|iidƒƒ}|djo
td‚nt|iidƒƒ}|iidƒ|t@oLt|iidƒƒ}|dt|iidƒƒ}|ii|ƒn|t@o?x<to0|iidƒ}|p
|d	joPqëqëWn|t@o?x<to0|iidƒ}|p
|d	joPq5q5Wn|t@o|iidƒndS(
Nis‹sNot a gzipped fileiisUnknown compression methodiiR>(	R-R
R,tordtFEXTRAR?RtFCOMMENTtFHCRC(R0tmagictmethodtflagtxlenR7((s /usr/local/lib/python2.5/gzip.pyt_read_gzip_header¡s4



 cCsÉ|itjo"ddk}t|idƒ‚n|idjo
td‚nt|ƒdjoc|i	t|ƒ|_	t
i||iƒ|_|ii
|ii|ƒƒ|it|ƒ7_ndS(Niÿÿÿÿs$write() on read-only GzipFile objects!write() on closed GzipFile objecti(RR$terrnoR,tEBADFR-Rt
ValueErrortlenR;R&R9R:RR+R.(R0tdataRO((s /usr/local/lib/python2.5/gzip.pyRÃs
iÿÿÿÿc	Csx|itjo"ddk}t|idƒ‚n|idjo|idjodSnd}|djoYy6x/to'|i	|ƒt
|i|dƒ}qsWWq8tj
o|i}q8Xnsy?x8||ijo'|i	|ƒt
|i|dƒ}qÌWWn0tj
o$||ijo
|i}q8nX|i
| }|i
||_
|i||_|i|7_|S(Niÿÿÿÿs$read() on write-only GzipFile objectiRii(RRROR,RPR"R-RRt_readtmintmax_read_chunktEOFErrorR!R.(R0R;ROtreadsizetchunk((s /usr/local/lib/python2.5/gzip.pyR
Ðs6 



cCs?||i|_t|ƒ|i|_|it|ƒ8_dS(N(R!RRR"R.(R0tbuf((s /usr/local/lib/python2.5/gzip.pyt_unreadðscCsv|idjo
td‚n|ioŒ|iiƒ}|iiddƒ||iiƒjo
td‚n|ii|ƒ|iƒ|iƒti	ti
ƒ|_t|_n|ii
|ƒ}|djo3|iiƒ}|iƒ|i|ƒtd‚n|ii|ƒ}|i|ƒ|iidjo;|iit|iiƒddƒ|iƒt|_ndS(NsReached EOFiiRii(R-RRWR ttelltseekRERNR&t
decompressobjR)t
decompresstFalseR
tflusht	_read_eoft_add_read_datatunused_dataRRR(R0R;tposRZt
uncompress((s /usr/local/lib/python2.5/gzip.pyRTõs0










$
cCsXti||iƒ|_|i||_|it|ƒ|_|it|ƒ|_dS(N(R&R9R:R!R"RRR;(R0RS((s /usr/local/lib/python2.5/gzip.pyRc'scCs‡|iiddƒt|iƒ}tt|iƒƒ}t|ƒt|iƒjo
td‚n$|t|iƒjo
td‚ndS(NiøÿÿÿisCRC check faileds!Incorrect length of data produced(R-R]RRR:R,RR;(R0R9tisize((s /usr/local/lib/python2.5/gzip.pyRb-s
cCs­|itjoX|ii|iiƒƒt|it|iƒƒt|it|i	ƒƒd|_n|itjo
d|_n|io|ii
ƒd|_ndS(N(RR$R-RR+RaRRR:R;RRRtclose(R0((s /usr/local/lib/python2.5/gzip.pyRh;s



cCsTy,|idjo|idjodSnWntj
odSnX|iƒdS(N(RRR-tAttributeErrorRh(R0((s /usr/local/lib/python2.5/gzip.pyt__del__Ns	cCsA|itjo |ii|ii|ƒƒn|iiƒdS(N(RR$R-RR+Ra(R0t	zlib_mode((s /usr/local/lib/python2.5/gzip.pyRaWs cCs
|iiƒS(s¥Invoke the underlying file object's fileno() method.

        This will raise AttributeError if the underlying file object
        doesn't support fileno().
        (R-tfileno(R0((s /usr/local/lib/python2.5/gzip.pyRl]scCstS(N(R`(R0((s /usr/local/lib/python2.5/gzip.pytisattyescCs|iS(N(R.(R0((s /usr/local/lib/python2.5/gzip.pyR\hscCsX|itjotdƒ‚n|iidƒt|_d|_d|_d|_	dS(s[Return the uncompressed stream file position indicator to the
        beginning of the filesCan't rewind in write modeiRN(
RRR,R-R]RR R!R"R.(R0((s /usr/local/lib/python2.5/gzip.pytrewindks			cCsþ|itjor||ijotdƒ‚n||i}x)t|dƒD]}|iddƒqNW|i|ddƒny|itjoh||ijo|iƒn||i}x%t|dƒD]}|idƒqÎW|i|dƒndS(NsNegative seek in write modeiR>(	RR$R.R,trangeRRRnR
(R0R.tcountR((s /usr/local/lib/python2.5/gzip.pyR]vs 

cCsS|djoti}|i}n|}g}xä|djoÖ|i|ƒ}|idƒ}||jp |djo!t|ƒ|jo|d}n|djp
|djo/|i||d ƒ|i||dƒPn|i|ƒ|t|ƒ}t||dƒ}q2W||ijo t||iddƒ|_ndi	|ƒS(Nis
iÿÿÿÿiRii(
tsystmaxintR#R
tfindRRtappendR[RUtjoin(R0R;RXtbufstcR((s /usr/local/lib/python2.5/gzip.pytreadline‡s*
	

-
 icCst|djo
ti}ng}xM|djo?|iƒ}|djoPn|i|ƒ|t|ƒ}q#W|S(NiR(RqRrRxRtRR(R0tsizehinttLtline((s /usr/local/lib/python2.5/gzip.pyt	readlines¦s




cCs"x|D]}|i|ƒqWdS(N(R(R0RzR{((s /usr/local/lib/python2.5/gzip.pyt
writelines´scCs|S(N((R0((s /usr/local/lib/python2.5/gzip.pyt__iter__¸scCs%|iƒ}|o|Snt‚dS(N(Rxt
StopIteration(R0R{((s /usr/local/lib/python2.5/gzip.pytnext»sNi(i (!t__name__t
__module__t__doc__RRRVR1R8R%R/RERNRR
R[RTRcRbRhRjR&tZ_SYNC_FLUSHRaRlRmR\RnR]RxR|R}R~R€(((s /usr/local/lib/python2.5/gzip.pyR3s:E						"	
 	2												c
CsÁtid}|o|ddj}|o|d}n|p
dg}nxm|D]e}|oˆ|djo+tddddd	tiƒ}ti}qF|d
djodGt|ƒGHqTnt|dƒ}ti|d
 d
ƒ}n^|djo+ti}tdddd
d	tiƒ}n&ti|dƒ}t|dd
ƒ}x4to,|i	dƒ}|pPn|i
|ƒqIW|tij	o|iƒn|tij	o|iƒqTqTWdS(Niis-dt-RRRRR-iýÿÿÿs.gzsfilename doesn't end in .gz:twbi(RqtargvRtstdintstdoutR4RRRR
RRh(targsR_targtftgRY((s /usr/local/lib/python2.5/gzip.pyt_testÃs@




	"t__main__(RƒRRqRBR&Rt__all__tFTEXTRIRGR?RHRR$RRR
RRRRRŽR(((s /usr/local/lib/python2.5/gzip.pys<module>s"$$							ÿ‘	&


Man Man