403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7//gzip.pyc
ó
˙–|_c@sůdZddlZddlZddlZddlZddlZddlZddlZddgZddddd	f\Z	Z
ZZZ
ddf\ZZd
„Zd„Zdd
d„Zdejfd„ƒYZd„Zedkrőeƒ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|jtjd|ƒƒdS(Ns<L(twritetstructtpack(toutputtvalue((s/usr/lib/python2.7/gzip.pytwrite32uscCstjd|jdƒƒdS(Ns<Iii(Rtunpacktread(tinput((s/usr/lib/python2.7/gzip.pytread32strbi	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/lib/python2.7/gzip.pyRscBseZdZdZd Zdddddd„Zed„ƒZd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
d„Zd„Zdd„Zd„Zd„Zed„ƒZd„Zejd„Zd„Zd„Zd„Zd„Zd„Zdd„Zd
d„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Ä|rd|kr|d7}n|dkrMtj||p=dƒ}|_n|dkrŒt|dƒrƒ|jdkrƒ|j}qŒd}n|dkrźt|dƒrł|j}qźd}n|dd!d	krt|_t|_	d|_
d|_d|_||_d
|_
nx|dd!dks7|dd!dkrxt|_|j|ƒtj|tjtjtjdƒ|_ntd
|d‚||_d|_||_|jtkrŔ|jƒndS(sXConstructor 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.

        The mtime argument is an optional numeric timestamp to be written
        to the stream when compressing.  All gzip compressed streams
        are required to contain a timestamp.  If omitted or None, the
        current time is used.  This module ignores the timestamp when
        decompressing; however, some programs, such as gunzip, make use
        of it.  The format of the timestamp is the same as that of the
        return value of time.time() and of the st_mtime member of the
        object returned by os.stat().

        tbRtnames<fdopen>tRiitridtwtasMode s not supportedN(tNonet__builtin__Rt	myfileobjthasattrRRtREADtTruet_new_membertextrabuft	extrasizet
extrastarttmin_readsizetWRITEt_init_writetzlibtcompressobjtDEFLATEDt	MAX_WBITSt
DEF_MEM_LEVELtcompresstIOErrortfileobjtoffsettmtimet_write_gzip_header(tselfR
RRR*R,((s/usr/lib/python2.7/gzip.pyt__init__-sD)
"								&	
				cCsSddl}|jdtdƒ|jtkrL|jddkrL|jdS|jS(Ni˙˙˙˙suse the name attributeiiý˙˙˙s.gz(twarningstwarntDeprecationWarningRR!R(R.R0((s/usr/lib/python2.7/gzip.pyR
…s
"cCs6t|jƒ}d|dd!dtt|ƒƒdS(Ns<gzip ii˙˙˙˙t t>(treprR*thextid(R.ts((s/usr/lib/python2.7/gzip.pyt__repr__scCs|jrtdƒ‚ndS(sLRaises a ValueError if the underlying file object has been closed.

        sI/O operation on closed file.N(tclosedt
ValueError(R.((s/usr/lib/python2.7/gzip.pyt
_check_closed‘s	cCs>||_tjdƒd@|_d|_g|_d|_dS(NRl˙˙i(RR#tcrc32tcrctsizetwritebuftbufsize(R.R
((s/usr/lib/python2.7/gzip.pyR"˜s
			cCs÷|jjdƒ|jjdƒtjj|jƒ}|jdƒrQ|d }nd}|rft}n|jjt|ƒƒ|j	}|dkr tjƒ}nt|jt
|ƒƒ|jjdƒ|jjdƒ|ró|jj|dƒndS(	Ns‹ss.gziý˙˙˙iss˙t(R*RtostpathtbasenameRtendswithtFNAMEtchrR,RttimeRtlong(R.tfnametflagsR,((s/usr/lib/python2.7/gzip.pyR-Ÿs"
		cCs#tjdƒd@|_d|_dS(NRl˙˙i(R#R=R>R?(R.((s/usr/lib/python2.7/gzip.pyt
_init_read˛scCs|jjdƒ}|dkr*td‚nt|jjdƒƒ}|dkrZtd‚nt|jjdƒƒ}t|jƒ|_|jjdƒ|t@rét|jjdƒƒ}|dt|jjdƒƒ}|jj|ƒn|t@r,x6tr(|jjdƒ}|s!|dkröPqöqöWn|t	@rox6trk|jjdƒ}|sd|dkr9Pq9q9Wn|t
@rŒ|jjdƒndS(	Nis‹sNot a gzipped fileiisUnknown compression methodiRB(R*R	R)tordRR,tFEXTRARGRtFCOMMENTtFHCRC(R.tmagictmethodtflagtxlenR8((s/usr/lib/python2.7/gzip.pyt_read_gzip_headerśs2
 
	
	
cCső|jƒ|jtkr:ddl}t|jdƒ‚n|jdkrUtd‚nt	|t
ƒrs|jƒ}nt|ƒdkrë|j
t|ƒ|_
tj||jƒd@|_|jj|jj|ƒƒ|jt|ƒ7_nt|ƒS(Ni˙˙˙˙s$write() on read-only GzipFile objects!write() on closed GzipFile objectil˙˙(R<RR!terrnoR)tEBADFR*RR;t
isinstancet
memoryviewttobytestlenR?R#R=R>RR(R+(R.tdataRW((s/usr/lib/python2.7/gzip.pyR×s
i˙˙˙˙cCsu|jƒ|jtkr:ddl}t|jdƒ‚n|jdkr\|jdkr\dSd}|dkrÂy4x-t	r |j
|ƒt|j|dƒ}qtWWq.t
k
rž|j}q.Xnly=x6||jkrý|j
|ƒt|j|dƒ}qČWWn,t
k
r-||jkr.|j}q.nX|j|j}|j|||!}|j||_|j|7_|S(Ni˙˙˙˙s$read() on write-only GzipFile objectiRii(R<RRRWR)RXRR*RRt_readtmintmax_read_chunktEOFErrorR+RR(R.R?RWtreadsizeR+tchunk((s/usr/lib/python2.7/gzip.pyR	ěs4
	



cCs/t|ƒ|j|_|jt|ƒ8_dS(N(R\RR+(R.tbuf((s/usr/lib/python2.7/gzip.pyt_unread
scCsl|jdkrtd‚n|jr­|jjƒ}|jjddƒ||jjƒkrgtd‚n|jj|ƒ|jƒ|jƒtj	tj
ƒ|_t|_n|jj
|ƒ}|dkrý|jjƒ}|jƒ|j|ƒtd‚n|jj|ƒ}|j|ƒ|jjdkrh|jjt|jjƒddƒ|jƒt|_ndS(NsReached EOFiiRii(R*RRaRttelltseekRMRVR#t
decompressobjR&t
decompresstFalseR	tflusht	_read_eoft_add_read_datatunused_dataR\R(R.R?tposRdt
uncompress((s/usr/lib/python2.7/gzip.pyR^s0	




$
cCs|tj||jƒd@|_|j|j}|j|||_|jt|ƒ|_|j|_|jt|ƒ|_dS(Nl˙˙(	R#R=R>R+RRRR\R?(R.R]R+((s/usr/lib/python2.7/gzip.pyRmCscCsŇ|jjddƒt|jƒ}t|jƒ}||jkrhtdt|ƒt|jƒfƒ‚n||jd@kr‡td‚nd}x"|dkrą|jjdƒ}qW|rÎ|jjddƒndS(Niř˙˙˙isCRC check failed %s != %sl˙˙s!Incorrect length of data producedRBi˙˙˙˙(R*RgRR>R)R6R?R	(R.R=tisizetc((s/usr/lib/python2.7/gzip.pyRlKscCs
|jdkS(N(R*R(R.((s/usr/lib/python2.7/gzip.pyR:cscCs˛|jdkrdS|jtkrq|jj|jjƒƒt|j|jƒt|j|j	d@ƒd|_n|jt
krŒd|_n|jrŽ|jjƒd|_ndS(Nl˙˙(
R*RRR!RR(RkRR>R?RRtclose(R.((s/usr/lib/python2.7/gzip.pyRsgs	
cCsI|jƒ|jtkrE|jj|jj|ƒƒ|jjƒndS(N(R<RR!R*RR(Rk(R.t	zlib_mode((s/usr/lib/python2.7/gzip.pyRkvs
cCs
|jjƒ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(R.((s/usr/lib/python2.7/gzip.pyRu}scCs_|jtkrtdƒ‚n|jjdƒt|_d|_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*RgRRRRRR+(R.((s/usr/lib/python2.7/gzip.pytrewind…s				cCs
|jtkS(N(RR(R.((s/usr/lib/python2.7/gzip.pytreadable‘scCs
|jtkS(N(RR!(R.((s/usr/lib/python2.7/gzip.pytwritable”scCstS(N(R(R.((s/usr/lib/python2.7/gzip.pytseekable—sicCs*|r1|dkr"|j|}q1tdƒ‚n|jtkrŻ||jkr^tdƒ‚n||j}x)t|dƒD]}|jddƒq|W|j|ddƒnt|jtkr#||jkrÚ|jƒn||j}x%t|dƒD]}|j	dƒqřW|j	|dƒn|jS(NisSeek from end not supportedsNegative seek in write modeiRB(
R+R;RR!R)trangeRRRvR	(R.R+twhencetcountti((s/usr/lib/python2.7/gzip.pyRgšs&


cCsŻ|dkrŠ|j|j}|jjd|ƒd}|dkru|j||8_|j||7_|j||!Stj}|j}n|}g}xŰ|dkrs|j|ƒ}|jdƒ}||ksí|dkrút	|ƒ|krú|d}n|dks|dkr@|j
||d ƒ|j||dƒPn|j
|ƒ|t	|ƒ}t||dƒ}q™W||jkr˘t||jddƒ|_ndj
|ƒS(Nis
ii˙˙˙˙Rii(R+RRtfindRtsystmaxintR R	R\tappendReR_tjoin(R.R?R+R}RbtbufsRr((s/usr/lib/python2.7/gzip.pytreadline˛s4	*

Ni(i (!t__name__t
__module__t__doc__RRR`R/tpropertyR
R9R<R"R-RMRVRR	ReR^RmRlR:RsR#tZ_SYNC_FLUSHRkRuRvRwRxRyRgR„(((s/usr/lib/python2.7/gzip.pyR$s8W						!	!	2								c	CsŹtjd}|o |ddk}|r6|d}n|sHdg}nx]|D]U}|rŢ|dkr‘tddddd	tjƒ}tj}q9|d
dkrśdGt|ƒGHqOnt|dƒ}tj|d
 d
ƒ}n[|dkrtj}tdddd
d	tjƒ}n%tj|dƒ}t|dd
ƒ}x0trk|j	dƒ}|s[Pn|j
|ƒq<W|tjk	rˆ|jƒn|tjk	rO|jƒqOqOWdS(Niis-dt-R
RRRR*iý˙˙˙s.gzsfilename doesn't end in .gz:twbi(RtargvRtstdintstdoutR5RRRR	RRs(targsRitargtftgRc((s/usr/lib/python2.7/gzip.pyt_testÚs<


	!	
t__main__(R‡RRRIRCR#tioRt__all__tFTEXTRQRORGRPRR!RRRtBufferedIOBaseRR“R…(((s/usr/lib/python2.7/gzip.pyt<module>s0$			˙ˇ	&

Youez - 2016 - github.com/yon3zu
LinuXploit