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/dist-packages/apt/progress/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/apt/progress/text.pyc
ó
WâRc@sÀdZddlZddlZddlZddlmZdddgZd„Zdefd	„ƒYZ	dej
e	fd
„ƒYZ
deje	fd„ƒYZdeje	fd„ƒYZdS(
s'Progress reporting for text interfaces.iÿÿÿÿN(tbasetAcquireProgresst
CdromProgresst
OpProgresscCs4tj|ƒ}||kr0tj|dƒ}n|S(s>Translate the message, also try apt if translation is missing.tapt(tapt_pkgtgettext(tmsgtres((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyt_stTextProgresscBs)eZdZdd„Zeed„ZRS(s.Internal Base class for text progress classes.cCs|ptj|_d|_dS(Ni(tsyststdoutt_filet_width(tselftoutfile((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyt__init__&scCs§|jjdƒ|jj|ƒ|jt|ƒkrY|jj|jt|ƒdƒn$|r}t|jt|ƒƒ|_n|r–|jjdƒn
|jjƒdS(s8Write the message on the terminal, fill remaining space.s
t s
N(R
twriteRtlentmaxtflush(RRtnewlinetmaximize((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyt_write*s$N(t__name__t
__module__t__doc__tNoneRtTruetFalseR(((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyR
#scBs/eZdZdd„Zdd„Zd„ZRS(s\Operation progress reporting.

    This closely resembles OpTextProgress in libapt-pkg.
    cCs-tj||ƒtjj|ƒd|_dS(Nt(R
RRRtold_op(RR((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyRAscCsktjj||ƒ|jr8|jr8|j|jƒn|jd|j|jftt	ƒ|j|_dS(s1Called periodically to update the user interface.s%s... %i%%
N(
RRtupdatetmajor_changeR!RtoptpercentRR(RR%((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyR"Fs
#cCsOtjj|ƒ|jrB|jtdƒd|jfttƒnd|_dS(s,Called once an operation has been completed.s%c%s... Dones
R N(RRtdoneR!RR	R(R((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyR&Ns	)N(RRRRRR"R&(((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyR;scBsbeZdZd
d„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„ZRS(s'AcquireProgress for the text interface.cCs?tj||ƒtjj|ƒd|_d|_d|_dS(NiPi(R
RRRRt_signalRt_id(RR((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyRYs
		cCsNtjj|ƒddl}|j|j|jƒ|_|jƒd|_dS(s¬Start an Acquire progress.

        In this case, the function sets up a signal handler for SIGWINCH, i.e.
        window resize signals. And it also sets id to 1.
        iÿÿÿÿNl(RRtstarttsignaltSIGWINCHt_winchR'R((RR*((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyR)`s

cGs›t|jdƒr—tj|jjƒƒr—ddl}ddl}ddl}|j|j|j	dƒ}|j
d|ƒ\}}}}|d|_ndS(	s)Signal handler for window resize signals.tfilenoiÿÿÿÿNiRthhhhis        (thasattrR
tostisattyR-tfcntlttermioststructtioctlt
TIOCGWINSZtunpackR(RtdummyR2R3R4tbuftcol((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyR,ms*cCsctjj||ƒtdƒ|j}|jjrR|dtj|jjƒ7}n|j	|ƒdS(s@Called when an item is update (e.g. not modified on the server).sHit s [%sB]N(
RRtims_hitR	tdescriptiontownertfilesizeRtsize_to_strR(Rtitemtline((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyR;ws
 cCs}tjj||ƒ|jj|jjkrH|jtdƒ|jƒn1|jtdƒ|jƒ|jd|jj	ƒdS(sCalled when an item is failed.sIgn sErr s  %sN(
RRtfailR=tstatust	STAT_DONERR	R<t
error_text(RR@((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyRBs
cCs¡tjj||ƒ|jjr#dS|j|j_|jd7_tdƒd|jj|jf}|jj	r|dt
j|jj	ƒ7}n|j|ƒdS(s/Called when some of the item's data is fetched.NisGet:s%s %ss [%sB](
RRtfetchR=tcompleteR(tidR	R<R>RR?R(RR@RA((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyRFˆs# c	Cs£tjj||ƒ|j|jdt|j|jƒ}t}d|}d}|j	r¥t
t|j|jƒ|j	ƒ}dtj|j	ƒtj
|ƒf}nx™|jD]Ž}d}|js |jr¯d|j}t|ƒt|ƒt|ƒ|jkrPn||7}t}q¯q¯nt}|jjjr[|d|jjj|jjf7}n|d|jj7}|jjjr˜|d|jjj7}n|d	tj|jƒ7}|jrü|jjjrü|d
tj|jƒ|jd|jf7}n|d7}t|ƒt|ƒt|ƒ|jkr3Pq¯||7}q¯W|sZ|tdƒ7}n|j	r||jt|ƒt|ƒd
|7}n|j|tƒtS(sˆPeriodically invoked while the Acquire process is underway.

        Return False if the user asked to cancel the whole Acquire process.gY@s%i%%R s	 %sB/s %ss [%s]s [%i %ss [%ss %ss %sBs	/%sB %i%%t]s
 [Working]R(RRtpulset
current_bytest
current_itemstfloatttotal_bytesttotal_itemsRtcurrent_cpstlongRR?ttime_to_strtworkerstcurrent_itemRCRRRR=RHt	shortdescR<tmodetcurrent_sizet
total_sizeRGR	R(	RR=R%tshownttvaltendtetatworkertval((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyRJ–sT
	
		
)
	
)	,cCs@tjj|||ƒ|jtdƒ||fƒtƒdkS(s7Prompt the user to change the inserted removable media.sUMedia change: please insert the disc labeled
 '%s'
in the drive '%s' and press enter
tctC(R_R`(RRtmedia_changeRR	t	raw_input(Rtmediumtdrive((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyRaÓscCsƒtjj|ƒ|jtdƒtj|jƒtj|j	ƒtj|j
ƒfjdƒƒddl}|j|j
|jƒdS(s/Invoked when the Acquire process stops running.sFetched %sB in %s (%sB/s)
s
iÿÿÿÿN(RRtstopRR	RR?t
fetched_bytesRRtelapsed_timeRPtrstripR*R+R'(RR*((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyReÛs N(
RRRRRR)R,R;RBRFRJRaRe(((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyRVs	
	
					=	cBs)eZdZd„Zd„Zd„ZRS(sText CD-ROM progress.cCsMtjj|ƒ|jtdƒtƒytdƒSWntk
rHdSXdS(s,Ask the user to provide a name for the disc.sBPlease provide a name for this Disc, such as 'Debian 2.1r1 Disk 1't:N(RRtask_cdrom_nameRR	RRbtKeyboardInterrupt(R((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyRjìs
cCs3tjj|||ƒ|r/|j|tƒndS(sSet the current progress.N(RRR"RR(Rttexttcurrent((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyR"öscCsPtjj|ƒ|jtdƒtƒytƒdkSWntk
rKtSXdS(s"Ask the user to change the CD-ROM.s1Please insert a Disc in the drive and press enterR N(RRtchange_cdromRR	RRbRk(R((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyRnüs
(RRRRjR"Rn(((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyRés	
	(
RR0RRtapt.progressRt__all__R	tobjectR
RRR(((s5/usr/lib/python2.7/dist-packages/apt/progress/text.pyt<module>s	“

Youez - 2016 - github.com/yon3zu
LinuXploit