KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/lib64/python2.4/site-packages/sepolgen/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/site-packages/sepolgen/util.pyo
mò
d&KRc@sŸdfd„ƒYZd„Zed„ZedjofdkZdkZeeiddƒZei	dƒx/e
dƒD]Zeiƒei
d	ƒqvWndS(
tConsoleProgressBarcBs/tZddd„Zdd„Zdd„ZRS(Nidt#cCs:d|_d|_||_||_||_t|_dS(Ni(tselftblockstcurrenttstepst	indicatortouttFalsetdone(RRRR((t3/usr/lib64/python2.4/site-packages/sepolgen/util.pyt__init__s					cCs<t|_|o|iid|ƒn|iidƒdS(Ns
%s:
s3%--10---20---30---40---50---60---70---80---90--100
(RRR	tmessageRtwrite(RR((R
tstarts	icCsÏ|i|7_|i}tt|it|iƒdƒdƒ|_|idjo
d|_n|i|}|i
i|i|ƒ|i
i
ƒ|idjo(|iot|_|i
idƒndS(Nidii2s
(RRtnRtoldtinttroundtfloatRtnewRR
RtflushR	tTrue(RRRR((R
tstep#s	-


	(t__name__t
__module__RtNoneRR(((R
RscCsg}|i|ƒ|S(N(tltextendts(RR((R
tset_to_list5s
cCs_t|ƒptdƒ‚n|o"t|ƒ}|iƒ|dSnx|D]
}|SqMWdS(s
    Return the first element of a set.

    It sometimes useful to return the first element from a set but,
    because sets are not indexable, this is rather hard. This function
    will return the first element from a set. If sorted is True, then
    the set will first be sorted (making this an expensive operation).
    Otherwise a random element will be returned (as sets are not ordered).
    sempty containteriN(tlenRt
IndexErrortsortedRRtsorttx(RR!RR#((R
tfirst:s	

t__main__NRiçscomputing pif0.001(RRRR$RtsysttimetstdouttpRtrangetiRtsleep(R+R&R)RR'RR$((R
t?s!	
		




Anon7 - 2021