MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/usr/lib/python2.4/site-packages/sepolgen/util.pyc
mò
=&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((t1/usr/lib/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!